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

Julian Hyde commented on CALCITE-705:
-------------------------------------

Avatica's standard for binary data is ByteString. It is preferred over byte[] 
because it is immutable and therefore does not need to be defensively copied. I 
suppose you could create ByteArrayAccessor, which would expect its input to be 
a byte[], but I think it would simplify things if we stuck to just ByteString 
throughout in Avatica.

Note that the getBytes method is part of the JDBC public API and MUST do a 
defensive copy regardless of whether the source is byte[] or ByteString.

> AvaticaStatement execute method to support DML
> ----------------------------------------------
>
>                 Key: CALCITE-705
>                 URL: https://issues.apache.org/jira/browse/CALCITE-705
>             Project: Calcite
>          Issue Type: New Feature
>          Components: avatica
>            Reporter: YeongWei
>            Assignee: Julian Hyde
>             Fix For: next
>
>




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

Reply via email to