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

update to fix timestamp and bigint/hugeint filters #10

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

TristenHarr
Copy link
Contributor

Fix filtering for bigint and timestamp by handling cast

break;
case "_neq":
sql = `${expression.column.name} != ?`;
sql = isTimestamp
? `${escape_double(expression.column.name)} != CAST(? AS TIMESTAMP)`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be refactored to pull the right hand side of the operator out into an expression which is computable only from the type, and reused. The left hand side seems to always be the same.

@TristenHarr TristenHarr merged commit 15427b4 into main Nov 7, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants