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

ImplicitCastException and stuck when comparing STRING with NULL #3454

Closed
YuanchengJiang opened this issue Jun 8, 2023 · 0 comments · Fixed by #3458
Closed

ImplicitCastException and stuck when comparing STRING with NULL #3454

YuanchengJiang opened this issue Jun 8, 2023 · 0 comments · Fixed by #3458
Assignees
Labels
Bug Incorrect or unexpected behavior SQL Issues or changes relating to SQL execution

Comments

@YuanchengJiang
Copy link

Describe the bug

QuestDB stuck when comparing STRING type variables with NULL.
When the comparison is in the predicate, it gives the Exception:

AsyncFilteredRecordCursor unexpected error [ex=
io.questdb.cairo.ImplicitCastException: inconvertible value: `INTC` [STRING -> CHAR]
]

To reproduce

create table test(time TIMESTAMP NOT NULL, symbol STRING NOT NULL);
insert into test values ('2023-04-14 19:10:48.002','INTC');
select 1 from test where test.symbol > NULL LIMIT 1; // Exception
select test.symbol > NULL from test LIMIT 1; // Stuck

Expected Behavior

No response

Environment

- **QuestDB version**: 7.1.3
- **OS**: ubuntu 20.04

Additional context

No response

@puzpuzpuz puzpuzpuz added Bug Incorrect or unexpected behavior SQL Issues or changes relating to SQL execution labels Jun 8, 2023
@puzpuzpuz puzpuzpuz self-assigned this Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Incorrect or unexpected behavior SQL Issues or changes relating to SQL execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants