Chinese characters detected by hive appear garbled with question marks

During the development process, I found a rather strange problem. There are Chinese data fields in a table. It is no problem to check this table alone. The Chinese data is fine. Later, it was found that the varchar type was used when creating the table. It would be fine to change it to string . When you can query, try casting.

Guess you like

Origin blog.csdn.net/weixin_45580378/article/details/129233895