wudianlong %!s(int64=3) %!d(string=hai) anos
pai
achega
0e6a9d122c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      energy/dayTask/mysql_to_hdfs.sh

+ 1 - 1
energy/dayTask/mysql_to_hdfs.sh

@@ -23,7 +23,7 @@ mysql_to_hdfs_lzo() {
 	--target-dir /warehouse/saga_dw/ods/tmp/$7/$do_date \
 	--delete-target-dir \
 	--columns $5 \
-	--query "select building, func_id, meter, data_time, data_value from energy_15_min where dt = '$do_date' and \$CONDITIONS" \
+	--query "$6 and \$CONDITIONS" \
 	--num-mappers 1 \
 	--hive-drop-import-delims \
 	--fields-terminated-by '\001' \