我写了一个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的运算符
1条答案
按热度按时间to94eoyn1#
correlationid字段中的数据是双精度浮点数。请将数据类型更改为double。