You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2023/01/05 12:59:00 UTC
[jira] [Commented] (IOTDB-5313) Python client didn't handle REDIRECTION_RECOMMEND correctly
[ https://issues.apache.org/jira/browse/IOTDB-5313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17654959#comment-17654959 ]
changxue commented on IOTDB-5313:
---------------------------------
verified on Build: 4d94377
> Python client didn't handle REDIRECTION_RECOMMEND correctly
> -----------------------------------------------------------
>
> Key: IOTDB-5313
> URL: https://issues.apache.org/jira/browse/IOTDB-5313
> Project: Apache IoTDB
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Haonan Hou
> Assignee: Haonan Hou
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.1
>
>
> 1c 1d
> {code:python}
> # insert multiple records into database
> data_types_ = [
> TSDataType.BOOLEAN,
> TSDataType.INT32,
> TSDataType.INT64,
> TSDataType.FLOAT,
> TSDataType.DOUBLE,
> TSDataType.TEXT,
> ]
> measurements_list_ = [
> ["s_01", "s_02", "s_03", "s_04", "s_05", "s_06"],
> ["s_01", "s_02", "s_03", "s_04", "s_05", "s_06"],
> ]
> values_list_ = [
> [False, 22, 33, 4.4, 55.1, "test_records01"],
> [True, 77, 88, 1.25, 8.125, "test_records02"],
> ]
> data_type_list_ = [data_types_, data_types_]
> device_ids_ = ["root.sg_test_01.d_01", "root.sg_test_01.d_02"]
> if (
> session.insert_records(
> device_ids_, [2, 3], measurements_list_, data_type_list_, values_list_
> )
> < 0
> ):
> print("error"){code}
> got
> error status is TSStatus(code=400, message='no detailed failure reason in QueryStateMachine', subStatus=[TSStatus(code=400, message='', subStatus=None, redirectNode=TEndPoint(ip='127.0.0.1', port=6667)), TSStatus(code=400, message='', subStatus=None, redirectNode=TEndPoint(ip='127.0.0.1', port=6667))], redirectNode=None)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)