Skip to content
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

To investigate: Is DDL working correctly? #138

Closed
Tracked by #154
matthewmturner opened this issue Sep 12, 2024 · 1 comment · Fixed by #161
Closed
Tracked by #154

To investigate: Is DDL working correctly? #138

matthewmturner opened this issue Sep 12, 2024 · 1 comment · Fixed by #161

Comments

@matthewmturner
Copy link
Collaborator

matthewmturner commented Sep 12, 2024

I have the following DDL in my .datafusionrc but the tables are not being created in the correct schema (the table name is "staging.min_aggs" instead of creating "min_aggs" in "staging" schema. I dont yet know whether my DDL is wrong or if this is a dft issue - i am just creating this to make sure i dont forget about it.

CREATE SCHEMA staging;
CREATE SCHEMA production;

CREATE EXTERNAL TABLE staging.min_aggs STORED AS PARQUET LOCATION 'ny2://sip/aggregates/minute_by_ticker_monthly_v2/year_month=2015-08/data.01.parquet';
CREATE EXTERNAL TABLE staging.trades_v2 STORED AS PARQUET LOCATION 'ny2://sip/trades_v2/date=2024-08-30/2024-08-30.01.parquet';

CREATE EXTERNAL TABLE "production".min_aggs STORED AS PARQUET LOCATION 'ny5://sip/aggregates/minute_by_ticker_monthly/year_month=2015-08/data.01.parquet';

CREATE TABLE wide AS VALUES (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
This was referenced Sep 16, 2024
@matthewmturner
Copy link
Collaborator Author

Note to self, add tests for this.

@matthewmturner matthewmturner linked a pull request Sep 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant