[ 
https://issues.apache.org/jira/browse/IOTDB-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Qingxin Feng reassigned IOTDB-5754:
-----------------------------------

    Assignee: Haonan Hou

> [JDBC]Can not using v1.x JDBC to connect with v0.13.x
> -----------------------------------------------------
>
>                 Key: IOTDB-5754
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5754
>             Project: Apache IoTDB
>          Issue Type: Bug
>            Reporter: Qingxin Feng
>            Assignee: Haonan Hou
>            Priority: Major
>
> Reproduce Step:
> 1.Download v1.1 、 v1.0 and v0.13.4 from 
> apache-iotdb[https://iotdb.apache.org/Download/]
> 2.Using JDBCExample.java which is download from 
> [https://github.com/apache/iotdb]
> 3.Change line 35 of JDBCExample.java from 
> "jdbc:iotdb://127.0.0.1:6667?version=V_1_0"  to 
> "jdbc:iotdb://127.0.0.1:6667?version=V_0_13" 
> 4.Using this file to connect with v1.1 and v1.0 , we got an right result;
> 5.Using this file to connect with v0.13.4 , we got an error message like 
> below:
> [cluster@i-7gjmxxlf lib]$ java -cp  ../lib/*:. JDBCExample
> Exception in thread "main" java.sql.SQLException: Fail to execute CREATE 
> DATABASE root.sg1
>         at 
> org.apache.iotdb.jdbc.IoTDBStatement.execute(IoTDBStatement.java:222)
>         at JDBCExample.main(JDBCExample.java:42)
> Caused by: org.apache.thrift.TApplicationException: Invalid method name: 
> 'executeStatementV2'
>         at 
> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
>         at 
> org.apache.iotdb.service.rpc.thrift.IClientRPCService$Client.recv_executeStatementV2(IClientRPCService.java:335)
>         at 
> org.apache.iotdb.service.rpc.thrift.IClientRPCService$Client.executeStatementV2(IClientRPCService.java:322)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at 
> org.apache.iotdb.rpc.SynchronizedHandler.invoke(SynchronizedHandler.java:41)
>         at com.sun.proxy.$Proxy0.executeStatementV2(Unknown Source)
>         at 
> org.apache.iotdb.jdbc.IoTDBStatement.executeSQL(IoTDBStatement.java:261)
>         at 
> org.apache.iotdb.jdbc.IoTDBStatement.execute(IoTDBStatement.java:219)
>         ... 1 more
> [cluster@i-7gjmxxlf lib]$ javac -cp  ../lib/*:. ./JDBCExample.java
> [cluster@i-7gjmxxlf lib]$ java -cp  ../lib/*:. JDBCExample
> Exception in thread "main" java.sql.SQLException: Fail to execute CREATE 
> TIMESERIES root.sg1.d1.s1 WITH DATATYPE=INT64, ENCODING=RLE, COMPRESSOR=SNAPPY
>         at 
> org.apache.iotdb.jdbc.IoTDBStatement.execute(IoTDBStatement.java:222)
>         at JDBCExample.main(JDBCExample.java:43)
> Caused by: org.apache.thrift.TApplicationException: Invalid method name: 
> 'executeStatementV2'
>         at 
> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
>         at 
> org.apache.iotdb.service.rpc.thrift.IClientRPCService$Client.recv_executeStatementV2(IClientRPCService.java:335)
>         at 
> org.apache.iotdb.service.rpc.thrift.IClientRPCService$Client.executeStatementV2(IClientRPCService.java:322)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at 
> org.apache.iotdb.rpc.SynchronizedHandler.invoke(SynchronizedHandler.java:41)
>         at com.sun.proxy.$Proxy0.executeStatementV2(Unknown Source)
>         at 
> org.apache.iotdb.jdbc.IoTDBStatement.executeSQL(IoTDBStatement.java:261)
>         at 
> org.apache.iotdb.jdbc.IoTDBStatement.execute(IoTDBStatement.java:219)
>         ... 1 more
> [cluster@i-7gjmxxlf lib]$



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to