[ https://issues.apache.org/jira/browse/HUDI-7582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vinaykumar Bhat updated HUDI-7582: ---------------------------------- Labels: hudi-1.0.0-beta2 (was: ) > Fix NPE in FunctionalIndexSupport::loadFunctionalIndexDataFrame() > ----------------------------------------------------------------- > > Key: HUDI-7582 > URL: https://issues.apache.org/jira/browse/HUDI-7582 > Project: Apache Hudi > Issue Type: Bug > Components: index > Reporter: Vinaykumar Bhat > Priority: Major > Labels: hudi-1.0.0-beta2 > > lookupCandidateFilesInMetadataTable(...) calls > FunctionalIndexSupport::loadFunctionalIndexDataFrame() with an empty string > for indexPartition which results in a NPE as loadFunctionalIndexDataFrame() > tries to lookup and dereference index-definition using this empty string. > > This part of the code should never have worked - hence it looks like > functional index (based on col-stats) is not tested on the query path. trying > to get the index-partition to use on the query side seems more involved - the > incoming query predicate needs to be parsed to get the (column-names, > function-name) for all the query predicate and then fetch the corresponding > index-partition by walking through the index-defs maintained in the > index-metadata. -- This message was sent by Atlassian Jira (v8.20.10#820010)