You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "godfrey he (JIRA)" <ji...@apache.org> on 2017/10/11 09:33:00 UTC
[jira] [Updated] (FLINK-7802) Exception occur when empty field
collection was pushed into TableSource
[ https://issues.apache.org/jira/browse/FLINK-7802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
godfrey he updated FLINK-7802:
------------------------------
Summary: Exception occur when empty field collection was pushed into TableSource (was: Error occur when empty field collection was pushed into TableSource)
> Exception occur when empty field collection was pushed into TableSource
> ------------------------------------------------------------------------
>
> Key: FLINK-7802
> URL: https://issues.apache.org/jira/browse/FLINK-7802
> Project: Flink
> Issue Type: Bug
> Components: Table API & SQL
> Reporter: godfrey he
> Assignee: godfrey he
>
> Currently, if no fields will be used, empty field collection will be pushed into TableSource in PushProjectIntoTableSourceScanRule. Some exception will occur, e.g. java.lang.IllegalArgumentException: At least one field must be specified at org.apache.flink.api.java.io.RowCsvInputFormat.<init>(RowCsvInputFormat.java:50)
> Consider such SQL: select count(1) from tbl.
> So if no fields will be used, we should also keep some columns for TableSource to read some data.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)