[ 
https://issues.apache.org/jira/browse/FLINK-17086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17096121#comment-17096121
 ] 

Lei Wang commented on FLINK-17086:
----------------------------------

Hi [~lirui], I build package from the latest code from flink github and test it 
.  There's new error:  

 

select * from robotparquet

e SQL statement. Reason:
org.apache.flink.shaded.org.apache.parquet.io.InvalidRecordException: robottime 
not found in message com.geekplus.robotdata.parser.RobotUploadDataTest {
 required int32 robotId;
 required int64 robotTime;
}

Seems it is a case sensitive issue. 

The parquet data is written by java. The field name is case sensitive.

But hive is case insensitive.

 

> Flink sql client not able to read parquet hive table because  
> `HiveMapredSplitReader` not supports name mapping reading for parquet format.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-17086
>                 URL: https://issues.apache.org/jira/browse/FLINK-17086
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Hive
>    Affects Versions: 1.10.0
>            Reporter: Lei Wang
>            Priority: Major
>
> When writing hive table with parquet format, flink sql client not able to 
> read it correctly because HiveMapredSplitReader not supports name mapping 
> reading for parquet format.
> [http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/fink-sql-client-not-able-to-read-parquet-format-table-td34119.html]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to