As in HIVE doc https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types#LanguageManualTypes-string
HIVE can implicitly convert STRING to DOUBLE. I have a HIVE script which joins two table on some fields, among which there is one field defined as STRING. Unfortunately, there are two records one starts with '0' and the other isn't but the rest part are the same. This result in join two tables with wrong results.
In 'EXPLAIN SQL' I found uses UDFToDouble(field) convert this record to double. What are the possible cases that HIVE did this implicitly conversion? Improving hash/sort performance?