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

SQL INSERT allows NULL on non-nullable SHORT column #4419

Open
1 task done
amunra opened this issue Apr 18, 2024 · 1 comment
Open
1 task done

SQL INSERT allows NULL on non-nullable SHORT column #4419

amunra opened this issue Apr 18, 2024 · 1 comment

Comments

@amunra
Copy link
Contributor

amunra commented Apr 18, 2024

To reproduce

  1. CREATE TABLE with a SHORT datatype.
  2. INSERT INTO a NULL into the SHORT column.
  3. Query back.

Expected:

  • The SQL Insert statement (step 2) should have failed.

Actual:

  • All statements pass, the actual value returned is 0 instead instead of NULL.

QuestDB version:

7.4.0

OS, in case of Docker specify Docker and the Host OS:

MacOS

File System, in case of Docker specify Host File System:

APFS

Full Name:

Adam Cimarosti

Affiliation:

QuestDB

Have you followed Linux, MacOs kernel configuration steps to increase Maximum open files and Maximum virtual memory areas limit?

  • Yes, I have

Additional context

No response

@ideoma
Copy link
Collaborator

ideoma commented Apr 26, 2024

There are no non-nullable types in QuestDB. You cannot specify NOT NULL when you create table.

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

No branches or pull requests

2 participants