-
Notifications
You must be signed in to change notification settings - Fork 24
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
.schema table_name
return unexcepted result?
#120
Labels
Comments
Hi @Cayincc, thanks for opening this issue. What's the original schema definition? The following seems to work fine for me: D CREATE TABLE tokyo_medals(country_code VARCHAR, gold_medal BIGINT, silver_medal BIGINT, bronze_medal BIGINT);
D CREATE INDEX ix_tokyo_medals_country_code ON tokyo_medals(country_code);
D .schema
CREATE INDEX ix_tokyo_medals_country_code ON tokyo_medals(country_code);
CREATE TABLE tokyo_medals(country_code VARCHAR, gold_medal BIGINT, silver_medal BIGINT, bronze_medal BIGINT); |
Dateset from cmu 15 445 2024fall - homework#1: wget https://15445.courses.cs.cmu.edu/fall2024/files/olympics-cmudb2024.db.gz |
Thanks! |
The output of $ duckdb olympics-cmudb2024.db v1.1.2 f680b7d08f
Enter ".help" for usage hints.
D select sql from duckdb_indexes();
┌──────────────────────────────────────────────────────────────────────┐
│ sql │
│ varchar │
├──────────────────────────────────────────────────────────────────────┤
│ CREATE INDEX sqlite_autoindex_gender_1 ON gender USING (); │
│ CREATE INDEX sqlite_autoindex_medal_info_1 ON medal_info USING (); │
│ CREATE INDEX ix_athletes_code ON athletes USING (); │
│ CREATE INDEX ix_coaches_code ON coaches USING (); │
│ CREATE INDEX ix_countries_code ON countries USING (); │
│ CREATE INDEX ix_medals_code ON medals USING (); │
│ CREATE INDEX ix_medals_winner_code ON medals USING (); │
│ CREATE INDEX ix_teams_athletes_code ON teams USING (); │
│ CREATE INDEX ix_teams_code ON teams USING (); │
│ CREATE INDEX ix_tokyo_medals_country_code ON tokyo_medals USING (); │
│ CREATE INDEX ix_venues_code ON venues USING (); │
├──────────────────────────────────────────────────────────────────────┤
│ 11 rows │
└──────────────────────────────────────────────────────────────────────┘ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happens?
Corresponding columns disappear:
duckdb:
sqlite:
To Reproduce
duckdb xxx.db
.schema table_name
OS:
x86_64
DuckDB Version:
v1.1.2 f680b7d08f
DuckDB Client:
Command line
Hardware:
No response
Full Name:
Cayin Wan
Affiliation:
None
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
No - Other reason (please specify in the issue body)
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: