[
https://issues.apache.org/jira/browse/DRILL-7473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16997173#comment-16997173
]
ASF GitHub Bot commented on DRILL-7473:
---------------------------------------
ihuzenko commented on pull request #1933: DRILL-7473: Parquet reader failed to
get field of repeated map
URL: https://github.com/apache/drill/pull/1933#discussion_r358173016
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/validate/BatchValidator.java
##########
@@ -293,14 +292,20 @@ private void validateVector(String name, ValueVector
vector) {
// structure to check.
} else if (vector instanceof BaseRepeatedValueVector) {
validateRepeatedVector(name, (BaseRepeatedValueVector) vector);
- } else if (vector instanceof RepeatedMapVector) {
- validateRepeatedMapVector(name, (RepeatedMapVector) vector);
+ } else if (vector instanceof AbstractRepeatedMapVector) {
Review comment:
Could you please clarify your comment below, for example
>Checking ```AbstractRepeatedMapVector``` includes DictVector, in order to
avoid NPE while getting value from ```NullReader```. The ```NullReader``` may
be returned when index points to the absent value in dict array, example query
```SELECT dict_array[3].keyInDict ... ``` .
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Parquet reader failed to get field of repeated map
> --------------------------------------------------
>
> Key: DRILL-7473
> URL: https://issues.apache.org/jira/browse/DRILL-7473
> Project: Apache Drill
> Issue Type: Bug
> Affects Versions: 1.17.0
> Reporter: Igor Guzenko
> Assignee: Bohdan Kazydub
> Priority: Blocker
> Fix For: 1.17.0
>
> Attachments: hive_alltypes.parquet
>
>
> Given query:
> {code:sql}
> select p.c16[0].m from dfs.tmp.`hive_alltypes.parquet` p;
> {code}
> Results into:
> {color:#FF0000}Error: SYSTEM ERROR: IllegalArgumentException: You tried to
> read a [find(String key)] type when you are using a field reader of type
> [SingleLikeRepeatedMapReaderImpl].{color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)