You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Tzu-Li (Gordon) Tai (JIRA)" <ji...@apache.org> on 2018/03/12 15:31:00 UTC

[jira] [Reopened] (FLINK-7802) Exception occur when empty field collection was pushed into CSVTableSource

     [ https://issues.apache.org/jira/browse/FLINK-7802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tzu-Li (Gordon) Tai reopened FLINK-7802:
----------------------------------------

> Exception occur when empty field collection was pushed into CSVTableSource
> --------------------------------------------------------------------------
>
>                 Key: FLINK-7802
>                 URL: https://issues.apache.org/jira/browse/FLINK-7802
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API &amp; SQL
>            Reporter: godfrey he
>            Assignee: godfrey he
>            Priority: Critical
>             Fix For: 1.4.0, 1.3.4
>
>
> Consider such SQL: select count(1) from csv_table. 
> When above SQL was executed, an exception will occur:
> java.lang.IllegalArgumentException: At least one field must be specified
> at org.apache.flink.api.java.io.RowCsvInputFormat.<init>(RowCsvInputFormat.java:50)
> So if no fields will be used, we should also keep some columns for CSVTableSource to get row count.



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