Closed alancai98 closed 3 months ago
PartiQLValueTextWriter does not print datetime values. Currently it does not implement the writer for datetime values, so attempting to print out a datetime value will result in an IllegalArgumentException.
PartiQLValueTextWriter
IllegalArgumentException
This is also pointed out in the tests:
https://github.com/partiql/partiql-lang-kotlin/blob/68e4849b152debc3bf5964c9dccd0082d80ed26e/partiql-types/src/test/kotlin/org/partiql/value/io/PartiQLValueTextWriterTest.kt#L39-L40.
Steps to reproduce the behavior:
append
ToString
PartiQLValue
Caused by: java.lang.IllegalArgumentException: Cannot write value of type DATE
Description
PartiQLValueTextWriter
does not print datetime values. Currently it does not implement the writer for datetime values, so attempting to print out a datetime value will result in anIllegalArgumentException
.This is also pointed out in the tests:
https://github.com/partiql/partiql-lang-kotlin/blob/68e4849b152debc3bf5964c9dccd0082d80ed26e/partiql-types/src/test/kotlin/org/partiql/value/io/PartiQLValueTextWriterTest.kt#L39-L40.
To Reproduce
Steps to reproduce the behavior:
PartiQLValueTextWriter
'sappend
, which calls theToString
visitor with a datetimePartiQLValue
IllegalArgumentException
--Caused by: java.lang.IllegalArgumentException: Cannot write value of type DATE
Expected Behavior
PartiQLValueTextWriter
to print out datetime valuesAdditional Context