-
Notifications
You must be signed in to change notification settings - Fork 1
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
Clarify EXTRACT
semantics in tests
#83
Comments
Regarding 1., SQL:2011 states:
where an exact numeric type is defined as follows:
So from SQL:2011, it appears to be implementation-defined. SQL:1992 states:
but later states:
and
I'm not sure if PartiQL should define the output type on its own or define it to be an implementation detail. To get around this, we can define the For example a test as follows:
could be rewritten to:
This is test rewrite is captured in: #84. |
Regarding 2, the SQL specs don't discuss Regarding 3, the SQL specs don't discuss |
Need to clarify some of the
EXTRACT
tests ported frompartiql-lang-kotlin
related to:partiql-lang-kotlin
uses decimalsEXTRACT(YEAR FROM TIME '12:34')
) -- NULL, MISSING, or some defaultpartiql-lang-kotlin
defaults to erroring in legacy mode, missing in permissiveEXTRACT(HOUR FROM DATE '2020-01-01')
) -- NULL, MISSING, or some defaultpartiql-lang-kotlin
defaults to0.
in both typing modesThis may also warrant a spec issue.
The text was updated successfully, but these errors were encountered: