Skip to content

What happened for NDJSON support on CLI? #4198

@thomas-k-cameron

Description

@thomas-k-cameron

Describe the bug
When I tried to run this script, it shown an error.
I believe that it worked before.

CREATE EXTERNAL TABLE IF NOT EXISTS asdf STORED AS NDJSON LOCATION 'some.ndjson';
SELECT * FROM asdf LIMIT 5;

Execution("Unable to find factory for NDJSON")

contents of the file is

{"asdf": 1}
{"asdf": 2}

To Reproduce
Use that file and run that script.

Expected behavior
It should create a table.

Additional context

datafusion-cli 14.0.0

When I tried it with STORED AS JSON it still didn't work.

CREATE EXTERNAL TABLE IF NOT EXISTS asdf STORED AS JSON LOCATION 'some.ndjson';
SELECT * FROM asdf LIMIT 5;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions