我使用Hadoop / hive,在处理以“ 00”开头的字符串数据时遇到问题。
假设“ 00123”作为string
存储在Hadoop表中。
我的问题是以下2个查询没有按原样显示“ 00123”。而是显示“ 123”。
select id from DB.TABLE where id="00123"
select cast(id as string) from DB.TABLE where id="00123"
我在Zeppelin上运行以上查询。 有人可以帮忙吗?不确定问题是由于Hadoop还是Zeppelin造成的。