[ 
https://issues.apache.org/jira/browse/FLINK-10355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16620439#comment-16620439
 ] 

ASF GitHub Bot commented on FLINK-10355:
----------------------------------------

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_r218750570
 
 

 ##########
 File path: 
flink-java/src/main/java/org/apache/flink/api/java/io/RowCsvInputFormat.java
 ##########
 @@ -199,7 +199,7 @@ protected boolean parseRecord(Object[] holders, byte[] 
bytes, int offset, int nu
                        // check if something went wrong
                        if (startPos < 0) {
                                throw new 
ParseException(String.format("Unexpected parser position for column %1$s of row 
'%2$s'",
-                                       field, new String(bytes, offset, 
numBytes)));
+                                       field+1, new String(bytes, offset, 
numBytes)));
 
 Review comment:
   Same as above.

----------------------------------------------------------------
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]


> The order of the column should start from 1.
> --------------------------------------------
>
>                 Key: FLINK-10355
>                 URL: https://issues.apache.org/jira/browse/FLINK-10355
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API &amp; SQL
>    Affects Versions: 1.6.0
>            Reporter: lihongli
>            Priority: Major
>              Labels: easyfix, pull-request-available
>         Attachments: B0C32FD9-47FE-4F63-921F-A9E49C0CB5CD.png
>
>
> When  I register an external Table using a CsvTableSource.It throws an 
> exception :"Parsing error for column 1".But I finally found that the second 
> column is the error column.I think that the order of the column should start 
> from 1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to