Where condition with integer values return same as ir were a string

Viewed 22

These two queries in SparkSQL return the same value and I don't know why. Treating the condition attribute as integer or string.

select count(*) from  <my_table> where <my_column> = 100 
union all
select count(*) from  <my_table> where <my_column> = '100'
1 Answers
Related