'Why does pyspark read hive string column as an integer column and how to prevent it?
It seems that pyspark reads data from hive string type column as integers. The data in column is like '0006', '0020' etc. but pyspark shows it as 6, 20 etc. Also df.printSchama() show column as integer although in hive it is a string type column. How to prevent it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
