Github user sansanichfb commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/1076#discussion_r97923218
--- Diff:
pxf/pxf-hive/src/main/java/org/apache/hawq/pxf/plugins/hive/HiveLineBreakAccessor.java
---
@@ -43,9 +43,9 @@
public HiveLineBreakAccessor(InputData input) throws Exception {
super(input, new TextInputFormat());
((TextInputFormat) inputFormat).configure(jobConf);
- String[] toks = HiveInputFormatFragmenter.parseToks(input,
PXF_HIVE_SERDES.LAZY_SIMPLE_SERDE.name());
- initPartitionFields(toks[HiveInputFormatFragmenter.TOK_KEYS]);
- filterInFragmenter = new
Boolean(toks[HiveInputFormatFragmenter.TOK_FILTER_DONE]);
+ HiveUserData hiveUserData = HiveUtilities.parseHiveUserData(input,
PXF_HIVE_SERDES.LAZY_SIMPLE_SERDE);
+ initPartitionFields(hiveUserData.getPartitionKeys());
--- End diff --
partitionKeys always have not-null value.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---