【发布时间】:2018-09-27 14:56:42
【问题描述】:
我有一个已加载到新创建的配置单元表中的文本文件。当我得到文件时,它也有列名。所以,我从文件中删除了列名,只加载了数据。但是,前两行我得到“null”,然后数据开始。该表有 39 列。我很确定 null 值用于列名。
下面是选择查询的输出
NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULLNULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
600002158100 2000-02-15 2018-09-24 07:06:26 63 1 0 0 0 0 0 1 0 0 0 0 0 00 0 0 0 0 "S" 0 NULL "Y" "N" "N" 0 7 "xyz" "MEDIUM" "abc" "pqr" "Sam" 1 "chris" 1999-07-31
1)So, do I had to load the files including the column names with it?
2) I still believe that the file that needs to be loaded need not have column names in it, just the data. please correct me if I am wrong.
请告诉我我的错误。
使用 tblproperties 后的新输出
abc xyz NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL pqr name NULL NULL age NULL NULL city country date year month
即当我触发“select * from tbl limi4”时,我得到标题名称,然后是数据。请指教
【问题讨论】:
标签: hive