[ 
https://issues.apache.org/jira/browse/CALCITE-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092812#comment-15092812
 ] 

Josh Elser commented on CALCITE-1050:
-------------------------------------

This is done by 
[Frame|http://calcite.apache.org/docs/avatica_json_reference.html#frame] for 
JSON and 
[ColumnValue|http://calcite.apache.org/docs/avatica_protobuf_reference.html#columnvalue]
 for Protobufs. For JSON, each value in the row attribute of a frame might be 
an array instead of a scalar value.

I have noticed in CALCITE-1040, however, that the parsing of scalar or array 
values is busted for arrays of length 1 with protobuf. Apparently I never wrote 
up a test for this. I'm currently working on adding an {{array_value}} and 
{{scalar_value}} to {{ColumnValue}} for protobuf to handle this conversion 
correctly.

Does this make sense to you?

> Avatica can't serialize java.sql.Array
> --------------------------------------
>
>                 Key: CALCITE-1050
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1050
>             Project: Calcite
>          Issue Type: Improvement
>          Components: avatica
>    Affects Versions: 1.5.0
>            Reporter: Lukas Lalinsky
>            Assignee: Julian Hyde
>
> As far as I can see, there is no way to serialize arrays in the Avatica RPC.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to