-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What happened for NDJSON support on CLI? #4198
Comments
There have been changes in how table providers are registered so this is likely a regression. It would be good to get some regression tests added when we fix this. I am guessing that the fix is simply to add fn create_runtime_env() -> Result<RuntimeEnv> {
let mut table_factories: HashMap<String, Arc<dyn TableProviderFactory>> =
HashMap::new();
table_factories.insert(
"csv".to_string(),
Arc::new(ListingTableFactory::new(FileType::CSV)),
);
table_factories.insert(
"parquet".to_string(),
Arc::new(ListingTableFactory::new(FileType::PARQUET)),
);
table_factories.insert(
"avro".to_string(),
Arc::new(ListingTableFactory::new(FileType::AVRO)),
);
table_factories.insert(
"json".to_string(),
Arc::new(ListingTableFactory::new(FileType::JSON)),
); |
What do you think about adding several test-cases for the datafusion-cli to check if some features works as intended? Is there a directory intended for adding test-cases for the cli?(I couldn't find it/) |
Seems to have been gone missing in #1010 |
Seems that this now available as regular "json" format: The following works on my machine:
I have updated PR-4427 such that both JSON and NDJSON are registered by default |
I'm closing this issue because the problem has been fixed with PR-4427. |
Describe the bug
When I tried to run this script, it shown an error.
I believe that it worked before.
contents of the file is
To Reproduce
Use that file and run that script.
Expected behavior
It should create a table.
Additional context
When I tried it with
STORED AS JSON
it still didn't work.The text was updated successfully, but these errors were encountered: