flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aljoscha Krettek (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-8230) NPE in OrcRowInputFormat on nested structs
Date Mon, 22 Jan 2018 10:41:00 GMT

     [ https://issues.apache.org/jira/browse/FLINK-8230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aljoscha Krettek updated FLINK-8230:
------------------------------------
    Fix Version/s: 1.5.0

> NPE in OrcRowInputFormat on nested structs
> ------------------------------------------
>
>                 Key: FLINK-8230
>                 URL: https://issues.apache.org/jira/browse/FLINK-8230
>             Project: Flink
>          Issue Type: Bug
>          Components: Batch Connectors and Input/Output Formats
>    Affects Versions: 1.4.0
>            Reporter: Sebastian Klemke
>            Assignee: Fabian Hueske
>            Priority: Blocker
>             Fix For: 1.5.0, 1.4.1
>
>
> OrcRowInputFormat ignores isNull and isRepeating on nested struct columns. If a struct
column contains nulls, it tries to read struct fields, leading to NPE in case of string fields:
> {code}
> java.lang.NullPointerException
> 	at java.lang.String.checkBounds(String.java:384)
> 	at java.lang.String.<init>(String.java:462)
> 	at org.apache.flink.orc.OrcUtils.readNonNullBytesColumnAsString(OrcUtils.java:392)
> 	at org.apache.flink.orc.OrcUtils.readField(OrcUtils.java:215)
> 	at org.apache.flink.orc.OrcUtils.readStructColumn(OrcUtils.java:1203)
> 	at org.apache.flink.orc.OrcUtils.readField(OrcUtils.java:252)
> 	at org.apache.flink.orc.OrcUtils.readNonNullStructColumn(OrcUtils.java:677)
> 	at org.apache.flink.orc.OrcUtils.readField(OrcUtils.java:250)
> 	at org.apache.flink.orc.OrcUtils.fillRows(OrcUtils.java:142)
> 	at org.apache.flink.orc.OrcRowInputFormat.ensureBatch(OrcRowInputFormat.java:334)
> 	at org.apache.flink.orc.OrcRowInputFormat.reachedEnd(OrcRowInputFormat.java:314)
> 	at org.apache.flink.runtime.operators.DataSourceTask.invoke(DataSourceTask.java:165)
> 	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:718)
> 	at java.lang.Thread.run(Thread.java:748)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message