hue跑sql(“Incorrect string value: “ lxE8 x8D‘ for column “hue . desktop_document2 . search‘ at row 1“

hue上跑sql报错(1366,"Incorrect string value: " lxE8 x8D’ for column “hue . desktop_document2 . search’ at row 1”

insert image description hereThe error is due to an encoding issue with the string value when inserted into the database table. Specifically because the characters "\xE8\x8D\x" (encoded in hex) cannot be stored correctly in the target column.

Later check the sql comment:
insert image description herecaused by Chinese brackets

You can use:
double-dash comment is a single-line comment
can also use:

Double-dash comments are suitable for single-line comments. If you need to add multi-line comments in Hive SQL, you can use /* */ block comments, which can span multiple lines and contain large paragraphs of comment content.

Guess you like

Origin blog.csdn.net/qq_43688472/article/details/132480293
Recommended