[ https://issues.apache.org/jira/browse/IGNITE-22032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17836407#comment-17836407 ]
Maksim Zhuravkov commented on IGNITE-22032: ------------------------------------------- Adding a cast to VARCHAR can be used as workaround: {code} select json_object('date': '2010-01-01'::DATE::VARCHAR) {"date":"2010-01-01"} {code} > Sql. JSON_OBJECT. Internal representation DATE values leaks into resulting > JSON object > -------------------------------------------------------------------------------------- > > Key: IGNITE-22032 > URL: https://issues.apache.org/jira/browse/IGNITE-22032 > Project: Ignite > Issue Type: Bug > Components: sql > Reporter: Maksim Zhuravkov > Priority: Minor > Labels: ignite-3 > > Most databases (see calcite issue) return a json that contains a date string, > but calcite returns its internal representation of date values (number of > days as int) > {code} > SELECT JSON_OBJECT('a': CAST('2010-01-01' AS DATE)) as c1 > {"a":14610} > {code} > Expected behaviour: > {code} > SELECT JSON_OBJECT('a': CAST('2010-01-01' AS DATE)) as c1 > {"a":"2010-01-01"} > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)