[
https://issues.apache.org/jira/browse/CALCITE-7708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18103535#comment-18103535
]
Mihai Budiu commented on CALCITE-7708:
--------------------------------------
This happens because Avatica does not really understand the Map type. I will
rename the issue accordingly.
> MAP values are converted to string using their internal representation
> ----------------------------------------------------------------------
>
> Key: CALCITE-7708
> URL: https://issues.apache.org/jira/browse/CALCITE-7708
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Affects Versions: avatica-1.28
> Reporter: Mihai Budiu
> Priority: Minor
>
> Example:
> {code:java}
> try (Connection c = DriverManager.getConnection("jdbc:calcite:")) {
> ResultSet r = c.createStatement().executeQuery(
> "select map['k', date '2020-01-01'] as m from (values (1))");
> r.next();
> r.getString(1); // returns "{k=18262}", the epoch-day count
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)