HIVE fields terminated by 与 表在hdfs上的关系

hive显示不随fields terminated by发生变化,但是hdfs随着fields terminated by发生变化。

CREATE TABLE `spark_ml_essemble_training_table_space`(
  `app_lable` double, 
  `imei_gender_man` string, 
  `imei_gender_woman` string, 
  `imei_age_5_18` string, 
  `imei_age_19_23` string, 
  `imei_age_24_29` string, 
  `imei_age_30_40` string, 
  `imei_age_41_60` string, 
  `imei_age_other` string, 
  `imei_dl_class_100` string, 
  `imei_dl_class_101` string, 
  `imei_dl_class_102` string, 
  `imei_dl_class_103` string, 
  `imei_dl_class_104` string, 
  `imei_dl_class_105` string, 
  `imei_dl_class_106` string, 
  `imei_dl_class_107` string, 
  `imei_dl_class_108` string, 
  `imei_dl_class_109` string, 
  `imei_dl_class_110` string, 
  `imei_dl_class_111` string, 
  `imei_dl_class_112` string, 
  `imei_dl_class_113` string, 
  `imei_dl_class_114` string, 
  `imei_dl_class_115` string, 
  `imei_dl_class_116` string, 
  `imei_dl_class_117` string, 
  `imei_dl_class_118` string, 
  `imei_dl_class_119` string, 
  `imei_dl_class_121` string, 
  `imei_dl_class_122` string, 
  `imei_dl_class_144` string, 
  `imei_dl_class_145` string, 
  `imei_dl_class_146` string, 
  `imei_dl_class_147` string, 
  `imei_dl_class_148` string, 
  `imei_dl_class_149` string, 
  `imei_dl_class_150` string, 
  `imei_dl_class_151` string, 
  `imei_dl_class_152` string, 
  `imei_dl_class_153` string, 
  `imei_dl_class_154` string, 
  `app_gender_man` string, 
  `app_gender_woman` string, 
  `f_app_class_10` string, 
  `f_app_class_100` string, 
  `f_app_class_101` string, 
  `f_app_class_102` string, 
  `f_app_class_103` string, 
  `f_app_class_104` string, 
  `f_app_class_105` string, 
  `f_app_class_106` string, 
  `f_app_class_107` string, 
  `f_app_class_108` string, 
  `f_app_class_109` string, 
  `f_app_class_110` string, 
  `f_app_class_111` string, 
  `f_app_class_112` string, 
  `f_app_class_113` string, 
  `f_app_class_114` string, 
  `f_app_class_115` string, 
  `f_app_class_116` string, 
  `f_app_class_117` string, 
  `f_app_class_118` string, 
  `f_app_class_119` string, 
  `f_app_class_121` string, 
  `f_app_class_122` string, 
  `f_app_class_144` string, 
  `f_app_class_145` string, 
  `f_app_class_146` string, 
  `f_app_class_147` string, 
  `f_app_class_148` string, 
  `f_app_class_149` string, 
  `f_app_class_150` string, 
  `f_app_class_151` string, 
  `f_app_class_152` string, 
  `f_app_class_153` string, 
  `f_app_class_154` string, 
  `f_app_ctr` string, 
  `f_app_longtail` string, 
  `f_app_tail` string, 
  `f_app_top1st` string, 
  `f_app_top2nd` string, 
  `f_app_top3rd` string)
ROW FORMAT DELIMITED 
  FIELDS TERMINATED BY ' ' 
  LINES TERMINATED BY '\n' 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.mapred.TextInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat';
  
  插入数据:
insert into table spark_ml_essemble_training_table_space
select
 app_lable,  
  `imei_gender_man`, 
  `imei_gender_woman`, 
  `imei_age_5_18`, 
  `imei_age_19_23`, 
  `imei_age_24_29`, 
  `imei_age_30_40`, 
  `imei_age_41_60`, 
  `imei_age_other`, 
  `imei_dl_class_100`, 
  `imei_dl_class_101`, 
  `imei_dl_class_102`, 
  `imei_dl_class_103`, 
  `imei_dl_class_104`, 
  `imei_dl_class_105`, 
  `imei_dl_class_106`, 
  `imei_dl_class_107`, 
  `imei_dl_class_108`, 
  `imei_dl_class_109`, 
  `imei_dl_class_110`, 
  `imei_dl_class_111`, 
  `imei_dl_class_112`, 
  `imei_dl_class_113`, 
  `imei_dl_class_114`, 
  `imei_dl_class_115`, 
  `imei_dl_class_116`, 
  `imei_dl_class_117`, 
  `imei_dl_class_118`, 
  `imei_dl_class_119`, 
  `imei_dl_class_121`, 
  `imei_dl_class_122`, 
  `imei_dl_class_144`, 
  `imei_dl_class_145`, 
  `imei_dl_class_146`, 
  `imei_dl_class_147`, 
  `imei_dl_class_148`, 
  `imei_dl_class_149`, 
  `imei_dl_class_150`, 
  `imei_dl_class_151`, 
  `imei_dl_class_152`, 
  `imei_dl_class_153`, 
  `imei_dl_class_154`, 
  `app_gender_man`, 
  `app_gender_woman`, 
  `f_app_class_10`, 
  `f_app_class_100`, 
  `f_app_class_101`, 
  `f_app_class_102`, 
  `f_app_class_103`, 
  `f_app_class_104`, 
  `f_app_class_105`, 
  `f_app_class_106`, 
  `f_app_class_107`, 
  `f_app_class_108`, 
  `f_app_class_109`, 
  `f_app_class_110`, 
  `f_app_class_111`, 
  `f_app_class_112`, 
  `f_app_class_113`, 
  `f_app_class_114`, 
  `f_app_class_115`, 
  `f_app_class_116`, 
  `f_app_class_117`, 
  `f_app_class_118`, 
  `f_app_class_119`, 
  `f_app_class_121`, 
  `f_app_class_122`, 
  `f_app_class_144`, 
  `f_app_class_145`, 
  `f_app_class_146`, 
  `f_app_class_147`, 
  `f_app_class_148`, 
  `f_app_class_149`, 
  `f_app_class_150`, 
  `f_app_class_151`, 
  `f_app_class_152`, 
  `f_app_class_153`, 
  `f_app_class_154`, 
  `f_app_ctr`, 
  `f_app_longtail`, 
  `f_app_tail`, 
  `f_app_top1st`, 
  `f_app_top2nd`, 
  `f_app_top3rd` 
   from spark_ml_essemble_original_table where ds="20160405"

你可能感兴趣的:(HIVE fields terminated by 与 表在hdfs上的关系)