You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2019/01/03 19:08:00 UTC
[jira] [Commented] (CALCITE-2763) avatica-go process null
[ https://issues.apache.org/jira/browse/CALCITE-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16733395#comment-16733395 ]
Josh Elser commented on CALCITE-2763:
-------------------------------------
[~shining], do you have the Java stacktrace from the Phoenix Query Server process? Hard to say from the avatica-go code alone whether this is a bug in the avatica-go driver or the avatica-server code itself (inside PQS).
> avatica-go process null
> -----------------------
>
> Key: CALCITE-2763
> URL: https://issues.apache.org/jira/browse/CALCITE-2763
> Project: Calcite
> Issue Type: Bug
> Components: avatica-go
> Affects Versions: avatica-go-3.2.0
> Reporter: shining
> Assignee: Francis Chuang
> Priority: Major
>
> I use avatica-go client write data through phoenix queryserver, Here is my code:
> {code:java}
> package main
> import "database/sql"
> import _ "github.com/apache/calcite-avatica-go/v3"
> func main() {
> db, err := sql.Open("avatica", "http://localhost:8765")
> checkErr(err)
> stmt, err := db.Prepare("upsert into PHOENIX_TEST (id , TITLE , date , ts , time , f)values(?, ?, ?, ?, ?, ?)")
> if err != nil {
> checkErr(err)
> }
> {color:red} _, err = stmt.Exec(0, sql.NullString{}, 1546409889000, 1546409889000, 1546409889000,33 )
> {color} if err != nil {
> checkErr(err)
> }
> db.Close()
> }
> func checkErr(err error) {
> if err != nil {
> panic(err)
> }
> }
> {code}
> this will take an error :
> {noformat}
> IllegalArgumentException: cannot convert false (class java.lang.Boolean) to PRIMITIVE_BOOLEAN
> {noformat}
> Why phoenix queryserver receive a boolean value?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)