Skip to content

Misleading error message in type inference when list of files is empty #36317

Closed
@alexey-milovidov

Description

ip-172-31-5-46.eu-central-1.compute.internal :) SELECT count() FROM file('**/*.json', JSONEachRow)

SELECT count()
FROM file('**/*.json', JSONEachRow)

Query id: 4501adb2-7556-47db-a296-3950db3aaeb3


0 rows in set. Elapsed: 0.014 sec. 

Received exception:
Code: 636. DB::Exception: All attempts to extract table structure from files failed. Errors:
. (CANNOT_EXTRACT_TABLE_STRUCTURE)

It shows newline character instead list of errors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions