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

Flink Jira Bot updated FLINK-19211:
-----------------------------------
    Labels: auto-deprioritized-critical auto-deprioritized-major stale-minor  
(was: auto-deprioritized-critical auto-deprioritized-major)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help 
the community manage its development. I see this issues has been marked as 
Minor but is unassigned and neither itself nor its Sub-Tasks have been updated 
for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is 
still Minor, please either assign yourself or give an update. Afterwards, 
please remove the label or in 7 days the issue will be deprioritized.


> SQL Read Decimal In Parquet Error
> ---------------------------------
>
>                 Key: FLINK-19211
>                 URL: https://issues.apache.org/jira/browse/FLINK-19211
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Hive
>    Affects Versions: 1.11.1
>            Reporter: nyq
>            Priority: Minor
>              Labels: auto-deprioritized-critical, auto-deprioritized-major, 
> stale-minor
>
> Use impala-3.2.0-cdh6.3.2 to create a parquet table with a decimal column:
>      create table test (a int, b decimal(15, 6)) stored as parquet;
>      insert into test values (1, 1.1), (2, 2.2), (3, 3.3);
> then use sql-client on hive:
>      select * from test
> give an error :
> {code:java}
> Caused by: java.lang.UnsupportedOperationException: 
> org.apache.flink.hive.shaded.parquet.column.values.dictionary.PlainValuesDictionary$PlainBinaryDictionary
>         at 
> org.apache.flink.hive.shaded.parquet.column.Dictionary.decodeToLong(Dictionary.java:49)
>         at 
> org.apache.flink.hive.shaded.formats.parquet.vector.ParquetDictionary.decodeToLong(ParquetDictionary.java:44)
>         at 
> org.apache.flink.table.data.vector.heap.HeapLongVector.getLong(HeapLongVector.java:49)
>         at 
> org.apache.flink.hive.shaded.formats.parquet.vector.ParquetDecimalVector.getDecimal(ParquetDecimalVector.java:50)
>         at 
> org.apache.flink.table.data.vector.VectorizedColumnBatch.getDecimal(VectorizedColumnBatch.java:115)
>         at 
> org.apache.flink.table.data.ColumnarRowData.getDecimal(ColumnarRowData.java:119)
>         at org.apache.flink.table.data.RowData.get(RowData.java:276)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to