I'm working with a string column which is 38 characters long and is actually numerical.
for e.g. id = '678868938393937838947477478778877.....' ( 38 characters long).
How do I cast it into a long integer ? I have tried cast function with IntegerType, LongType and DoubleType and when i try to show the column it yields Nulls.
The reason I want to do this is because I need to do some inner joins using this column and doing it as String is giving me Java Heap Space Errors.
Any suggestions on how to cast it as a Long Integer ? { This question tries to cast a string into a Long Integer }