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

CREATE TYPE IF NOT EXISTS #11844

Open
2 tasks done
DiptenduIDEAS opened this issue Apr 26, 2024 · 3 comments
Open
2 tasks done

CREATE TYPE IF NOT EXISTS #11844

DiptenduIDEAS opened this issue Apr 26, 2024 · 3 comments

Comments

@DiptenduIDEAS
Copy link

DiptenduIDEAS commented Apr 26, 2024

What happens?

connection.execute("CREATE TYPE IF NOT EXISTS M_or_D AS ENUM ('MEASURE', 'DIMENSION')")

leads to following error

duckdb.duckdb.ParserException: Parser Error: syntax error at or near "NOT"

To Reproduce

CREATE TYPE M_or_D AS ENUM ('MEASURE', 'DIMENSION');

OS:

Windows

DuckDB Version:

duckdb==0.10.1

DuckDB Client:

Python

Full Name:

Diptendu Dutta

Affiliation:

IDEAS TIH

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?

Yes

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have
@soerenwolfers
Copy link

soerenwolfers commented Apr 28, 2024

Is this a feature request or did you expect this already works (if the latter, is there any documentation that implies it works?)

@DiptenduIDEAS
Copy link
Author

DiptenduIDEAS commented Apr 29, 2024 via email

@Crypto-Spartan
Copy link

+1 for a feature request on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants