-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Minor: port more create_drop table tests to sqllogictests #6031
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -448,6 +448,20 @@ CREATE TABLE table_without_values(field1 BIGINT NULL, field2 BIGINT NULL); | |
| statement ok | ||
| CREATE TABLE IF NOT EXISTS table_without_values(field1 BIGINT, field2 BIGINT); | ||
|
|
||
| statement ok | ||
| CREATE EXTERNAL TABLE aggregate_simple STORED AS CSV WITH HEADER ROW LOCATION 'tests/data/aggregate_simple.csv' | ||
|
|
||
| # Should not recreate the same EXTERNAL table | ||
| statement error Execution error: Table 'aggregate_simple' already exists | ||
| CREATE EXTERNAL TABLE aggregate_simple STORED AS CSV WITH HEADER ROW LOCATION 'tests/data/aggregate_simple.csv' | ||
|
|
||
| statement ok | ||
| CREATE EXTERNAL TABLE IF NOT EXISTS aggregate_simple STORED AS CSV WITH HEADER ROW LOCATION 'tests/data/aggregate_simple.csv' | ||
|
Comment on lines
+458
to
+459
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the previous cases I think we need to create this table again without
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed,thanks again. |
||
|
|
||
| # create bad custom table | ||
| statement error DataFusion error: Execution error: Unable to find factory for DELTATABLE | ||
| CREATE EXTERNAL TABLE dt STORED AS DELTATABLE LOCATION 's3://bucket/schema/table'; | ||
|
|
||
|
|
||
| # Should not recreate the same table | ||
| statement error Table 'table_without_values' already exists | ||
|
|
@@ -569,6 +583,17 @@ NULL | |
| statement ok | ||
| drop table foo; | ||
|
|
||
| # craete csv table with empty csv file | ||
| statement ok | ||
| CREATE EXTERNAL TABLE empty STORED AS CSV WITH HEADER ROW LOCATION 'tests/data/empty.csv'; | ||
|
|
||
| query TTI | ||
| select column_name, data_type, ordinal_position from information_schema.columns where table_name='empty';; | ||
| ---- | ||
| c1 Utf8 0 | ||
| c2 Utf8 1 | ||
| c3 Utf8 2 | ||
|
|
||
|
|
||
| ## should allow any type of exprs as values | ||
| statement ok | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.