错误1003:找不到别名truck\u events\u子集的运算符

jm81lzqq  于 2021-06-21  发布在  Pig
关注(0)|答案(1)|浏览(296)

我写了一个Pig剧本:

truck_events = LOAD '/user/data/truck_event_text_partition.csv' USING PigStorage(',')
AS (driverId:int, truckId:int, eventTime:chararray,                 
eventType:chararray, longitude:double, latitude:double,
eventKey:chararray, correlationId:long, driverName:chararray,
routeId:long,routeName:chararray,eventDate:chararray);
DESCRIBE truck_events;
truck_events_subset = LIMIT truck_events 100;
DESCRIBE truck_events_subset;
DUMP truck_events_subset;

但我有个错误:
error org.apache.pig.tools.grunt.grunt-错误1003:找不到别名truck\u events\u subset的运算符

to94eoyn

to94eoyn1#

correlationid字段中的数据是双精度浮点数。请将数据类型更改为double。

truck_events = LOAD '/user/data/truck_event_text_partition.csv' USING PigStorage(',') AS (driverId:int, truckId:int, eventTime:chararray,eventType:chararray, longitude:double, latitude:double,eventKey:chararray, correlationId:double, driverName:chararray,routeId:long,routeName:chararray,eventDate:chararray);

相关问题