fhueske commented on a change in pull request #6713: [FLINK-10355][table]the
order of the columns start from 1
URL: https://github.com/apache/flink/pull/6713#discussion_r218750490
##########
File path:
flink-java/src/main/java/org/apache/flink/api/java/io/RowCsvInputFormat.java
##########
@@ -177,7 +177,7 @@ protected boolean parseRecord(Object[] holders, byte[]
bytes, int offset, int nu
// the error state EMPTY_COLUMN is
ignored
if (parser.getErrorState() !=
FieldParser.ParseErrorState.EMPTY_COLUMN) {
throw new
ParseException(String.format("Parsing error for column %1$s of row '%2$s'
originated by %3$s: %4$s.",
- field, new
String(bytes, offset, numBytes), parser.getClass().getSimpleName(),
parser.getErrorState()));
+ field+1, new
String(bytes, offset, numBytes), parser.getClass().getSimpleName(),
parser.getErrorState()));
Review comment:
This change does not pass the style check. Please add whitespaces around
`+`, i.e., -> `field + 1`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services