horaedb icon indicating copy to clipboard operation
horaedb copied to clipboard

A large number of '\' in Java SDK error message

Open xzchaoo opened this issue 2 years ago • 1 comments

Describe this problem

The error message of the CeresDB SDK contains a large number of '\'.

I create a table with 'value' field initialized with 'double' data type. Then I write a record with value '{... my biz json content ...}', which is a json string. CeresDB Java SDK reports an error. Ok. I know it's normal to report errors. But, the error content contains a large number of '\'. The longest line reaches 12MB. But the length of my json is only a few thousand.

image

image

Server version

Docker image ceresdb/ceresdb-server:v1.0.0 Java SDK: io.ceresdb:ceresdb-all:1.0.3

Steps to reproduce

I create a table with 'value' field initialized with 'double' data type. Then I write a record with value '{... my biz json content ...}', which is a json string. CeresDB Java SDK reports an error. Ok. I know it's normal to report errors. But, the error content contains a large number of '\'. The longest line reaches 12MB. But the length of my json is only a few thousand.

Expected behavior

CeresDB Java SDK reports an error with better error message.

Additional Information

No response

xzchaoo avatar May 23 '23 09:05 xzchaoo

I guess this seems a bug in the java SDK. Let's try to reproduce it. @xzchaoo Could please provide your table schema or the create table SQL?

ShiKaiWi avatar May 23 '23 09:05 ShiKaiWi