partiql-lang-kotlin
partiql-lang-kotlin copied to clipboard
PartiQL libraries and tools in Kotlin.
``` ... FROM foo AS f LEFT JOIN bar as b ON true ``` In this example, the `b` variable introduced by the `LEFT JOIN` is not assigned a type...
Assuming: - `foo` has the type `list` - `index` has the type `int` Then the inferencer assigns the type `int` to the expression `foo[index]`. This is incorrect because: - `foo`...
The inferencer incorrectly assigns the `missing` type to this expression: - `{ id : 42 }[0]` Because this is an *ordered* struct, the type should actually be `int`. Background: `StructType`...
Static type inferencer should give an error when struct constructors include non-text keys. Evaluation-side is tracked in #355. See tests in `StaticTypeInferenceVisitorTransformTest` that should give an error: https://github.com/partiql/partiql-lang-kotlin/blob/fb7992468158d947557dc979f48a5f41ce83aa43/lang/test/org/partiql/lang/eval/visitors/StaticTypeInferenceVisitorTransformTest.kt#L4412
Hello! It seems like this implementation of PartiQL doesn't support some common math/numerical functions. For example: ``` org.partiql.lang.eval.EvaluationException: No such function: pi ... org.partiql.lang.eval.EvaluationException: No such function: pow ... org.partiql.lang.eval.EvaluationException:...
It would be nice to have the option to use date_diff that outputs the time difference in milliseconds. Ex: `DATE_DIFF(milliseconds, my_timestamp_field, UTCNOW())`
Tried passing DML statements as arguments to a system stored procedure, and got the following different errors for each: #### DML INSERT * Statement: `EXEC abc_proc INSERT INTO dogs `...
While chatting with a customer about this I realized that these are going to be frequent requirements of customers. We should support them by default. For example: ``` -- parses...
The error handling that we have today is a little cumbersome to use and can be confusing for our customers. - The way error messages are composed is too complex:...