prathit06 commented on code in PR #10527:
URL: https://github.com/apache/hudi/pull/10527#discussion_r1458332575
##########
hudi-flink-datasource/hudi-flink1.14.x/src/main/java/org/apache/hudi/table/format/cow/ParquetSplitReaderUtil.java:
##########
@@ -119,6 +119,11 @@ public static ParquetColumnarRowSplitReader
genPartColumnarRowReader(
long splitLength,
FilterPredicate filterPredicate,
UnboundRecordFilter recordFilter) throws IOException {
+
+ if (Arrays.stream(selectedFields).anyMatch(x -> x == -1)) {
+ throw new AssertionError("One or more specified columns does not exist
in the hudi table");
Review Comment:
have updated it to `ValidationUtils.checkState`
##########
hudi-flink-datasource/hudi-flink1.14.x/src/main/java/org/apache/hudi/table/format/cow/ParquetSplitReaderUtil.java:
##########
@@ -119,6 +119,11 @@ public static ParquetColumnarRowSplitReader
genPartColumnarRowReader(
long splitLength,
FilterPredicate filterPredicate,
UnboundRecordFilter recordFilter) throws IOException {
+
+ if (Arrays.stream(selectedFields).anyMatch(x -> x == -1)) {
+ throw new AssertionError("One or more specified columns does not exist
in the hudi table");
Review Comment:
have updated to `ValidationUtils.checkState`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]