在hive下使用dual伪表

[hive@nn1 ~]$ touch dual.txt
[hive@nn1 ~]$ echo 'X' >dual.txt
hive> load data local inpath '/home/hive/dual.txt' overwrite into table dual;
hive> select 'a' from dual;
OK
a
Time taken: 1.03 seconds, Fetched: 1 row(s)
hive>

原文地址:https://www.cnblogs.com/staryea/p/8514179.html