hue上跑sql报错(1366,"Incorrect string value: " lxE8 x8D’ for column “hue . desktop_document2 . search’ at row 1”
The 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:
caused 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.