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

Missing some explicit CASTs that are permitted in SQL99 #1734

Open
alancai98 opened this issue Jan 30, 2025 · 0 comments
Open

Missing some explicit CASTs that are permitted in SQL99 #1734

alancai98 opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers SQL92Spec Features from the SQL92 spec

Comments

@alancai98
Copy link
Member

Current implementation is missing some casts from SQL99 (see section 6.22 ).

E.g. string -> date

PartiQL Shell
Version: 1.0.0-97741fa2f

partiql ▶ CAST('2025-01-30' AS DATE);

e: [runtime] Undefined cast from STRING to DATE.

string -> time

partiql ▶ CAST('11:39:00' AS TIME);

e: [runtime] Undefined cast from STRING to TIME(0).

string -> timestamp

partiql ▶ CAST('2025-01-30 11:39:00' AS TIMESTAMP);

e: [runtime] Undefined cast from STRING to TIMESTAMP(6).
@alancai98 alancai98 added bug Something isn't working SQL92Spec Features from the SQL92 spec good first issue Good for newcomers labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers SQL92Spec Features from the SQL92 spec
Projects
None yet
Development

No branches or pull requests

1 participant