Github user sansanichfb commented on a diff in the pull request: https://github.com/apache/incubator-hawq/pull/1249#discussion_r119746963 --- Diff: pxf/pxf-jdbc/src/main/java/org/apache/hawq/pxf/plugins/jdbc/JdbcPartitionFragmenter.java --- @@ -111,30 +110,40 @@ public JdbcPartitionFragmenter(InputData inConf) throws UserDataException { partitionBy = inConf.getUserProperty("PARTITION_BY").split(":"); partitionColumn = partitionBy[0]; partitionType = PartitionType.getType(partitionBy[1]); - } catch (IllegalArgumentException e1) { + } catch (IllegalArgumentException | ArrayIndexOutOfBoundsException e1) { throw new UserDataException("The parameter 'PARTITION_BY' invalid, the pattern is 'column_name:date|int|enum'"); } + //parse and validate parameter-RANGE try { - range = inConf.getUserProperty("RANGE").split(":"); + if (inConf.getUserProperty("RANGE") != null) { + range = inConf.getUserProperty("RANGE").split(":"); + if (range.length == 1 && partitionType != PartitionType.ENUM) + throw new UserDataException("The parameter 'RANGE' does not specify '[:end_value]'"); --- End diff -- If we want to support open-ended range on fragmenter phase - we might have the last fragment having more data than rest of fragments, which is acceptable and very user-friendly so +1 for having open-ended range.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---