From 2dde1a24a3d6c266b46bcfd4e2696dff8a3e07a2 Mon Sep 17 00:00:00 2001 From: LJ Sinclair Date: Tue, 2 Jan 2024 15:41:03 +1100 Subject: [PATCH] updated as per jira comment --- docs/tools/python-client-library/python-client-example.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tools/python-client-library/python-client-example.md b/docs/tools/python-client-library/python-client-example.md index e9e09c66..15d00e93 100644 --- a/docs/tools/python-client-library/python-client-example.md +++ b/docs/tools/python-client-library/python-client-example.md @@ -126,7 +126,7 @@ def upload_data_bulk(key_from: int, key_to: int): if result.ok: print("inserted " + str(result.rows_affected) + " rows in " + str(etime+1-stime) + " seconds.") else: - print(result.error.description) + print(result.error) return result.ok # create a demo table and load million rows @@ -134,7 +134,7 @@ def run(batchSize: int): # create demo table result=client.query(sql="CREATE TABLE demo_upload(_id ID, keycol INT, val1 STRING, val2 STRING)") if not result.ok: - print(result.error.description) + print(result.error) # insert batchSize rows per insert for 1000 times n=int(1000000/batchSize) l=1