You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2022/07/20 22:38:00 UTC

[jira] [Updated] (FLINK-27415) Read empty csv file throws exception in FileSystem table connector

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

Flink Jira Bot updated FLINK-27415:
-----------------------------------
    Labels: pull-request-available stale-assigned  (was: pull-request-available)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issue is assigned but has not received an update in 30 days, so it has been labeled "stale-assigned".
If you are still working on the issue, please remove the label and add a comment updating the community on your progress.  If this issue is waiting on feedback, please consider this a reminder to the committer/reviewer. Flink is a very active project, and so we appreciate your patience.
If you are no longer working on the issue, please unassign yourself so someone else may work on it.


> Read empty csv file throws exception in FileSystem table connector
> ------------------------------------------------------------------
>
>                 Key: FLINK-27415
>                 URL: https://issues.apache.org/jira/browse/FLINK-27415
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / FileSystem, Formats (JSON, Avro, Parquet, ORC, SequenceFile)
>    Affects Versions: 1.15.0
>            Reporter: Jingsong Lee
>            Assignee: jia liu
>            Priority: Major
>              Labels: pull-request-available, stale-assigned
>             Fix For: 1.15.2
>
>
> {code:java}
> // in CsvFilesystemBatchITCase
> @Test
> public void testEmpty() throws Exception {
>     String path = new URI(resultPath()).getPath();
>     new File(path).mkdirs();
>     File file = new File(path, "test_file");
>     file.createNewFile();
>     check("select * from nonPartitionedTable", Collections.emptyList());
> } {code}
> Throws:
> {code:java}
> Caused by: java.lang.IllegalArgumentException
>     at org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:122)
>     at org.apache.flink.connector.file.src.impl.StreamFormatAdapter$TrackingFsDataInputStream.<init>(StreamFormatAdapter.java:264)
>     at org.apache.flink.connector.file.src.impl.StreamFormatAdapter.lambda$openStream$3(StreamFormatAdapter.java:180)
>     at org.apache.flink.connector.file.src.util.Utils.doWithCleanupOnException(Utils.java:45)
>     at org.apache.flink.connector.file.src.impl.StreamFormatAdapter.openStream(StreamFormatAdapter.java:172)
>     at org.apache.flink.connector.file.src.impl.StreamFormatAdapter.createReader(StreamFormatAdapter.java:70)
>     at org.apache.flink.connector.file.src.impl.FileSourceSplitReader.checkSplitOrStartNext(FileSourceSplitReader.java:112)
>     at org.apache.flink.connector.file.src.impl.FileSourceSplitReader.fetch(FileSourceSplitReader.java:65)
>     at org.apache.flink.connector.base.source.reader.fetcher.FetchTask.run(FetchTask.java:58)
>     at org.apache.flink.connector.base.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:142)
>     ... 6 more {code}
> This may be introduced by FLINK-24703 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)