Closed shoffmeister closed 1 month ago
Note that https://duckdb.org/docs/sql/statements/drop documents the availability of a "schema" for DROP TYPE myschema.mytype - which would confirm that CREATE TYPE should allow the same.
FWIW, I am trying to get this to pass:
drop type if exists "myschema".mytype;
create type "myschema".mytype as int;
There may be some friction on top of just the CREATE TYPE.
Created https://github.com/duckdb/duckdb-web/issues/3696 to ask for official documentation schema-prefixed types.
Search before asking
What Happened
Lint statements such as
and get
Expected Behaviour
Although https://duckdb.org/docs/sql/statements/create_type.html does not explicitly show that a schema prefix is allowed, DuckDB does do it, has all the metadata for it.
On the DuckDB side I would expect a railroad diagram such as https://duckdb.org/docs/sql/statements/create_table also for types; I'll create a defect against DuckDB docs for that.
Observed Behaviour
How to reproduce
Given the below SQL as create-type.sql,
run
The above SQL works in DuckDB 1.1.0
Dialect
duckdb
Version
sqlfluff, version 3.2.0
Configuration
none
Are you willing to work on and submit a PR to address the issue?
Code of Conduct