Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7802

Exception occur when empty field collection was pushed into CSVTableSource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.3.4, 1.4.0
    • Table SQL / API
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              godfreyhe godfrey he
              godfreyhe godfrey he
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: