I am writing Japanese character in the hive table as part of one of my program. Later when i am select that field from Hive i am able to read it but when i reading it from Spark.sql it is not giving me expected result .
spark.sql("select SQL_VAL as sql_val from abc.ac_tbl where d_name='2019-07-09_14:26:16.486' ").show()
+-------+
|sql_val|
+-------+
| ?|
+-------+
Same table when query from hive it is giving output -
select SQL_VAL as sql_val from abc.ac_tbl where d_name='2019-07-09_14:26:16.486'
sql_val
文