????????
          
??????DataStream??????Table????????????rowtime??????????????udtf??sql????tableEnv.sql()????????????????Rowtime
 attributes must not be in the input rows of a regular join. As a workaround 
you can cast the time attributes of input tables to TIMESTAMP 
before. ????????????????to_timestamp????????eventTime????????????????????????????????????????sql??eventTime????????????


sql: select
                  tmp.metric_id as 
metric_id,
                  
tmp.metric_config as metric_config,
                  startLat,
                  destName,
                  bizType,
                  orderId,
                  completedTime,
                  orderStatus,
                  startHexList,
                  cityId,
                  type,
                  destLat,
                  endHexList,
                  destLng,
                  createTime,
                  passengerId,
                  finishedTime,
                  vehicleId,
                  startLng,
                  startName,
                  eventTime
                from
                  
htw_order_dwd_htw_order_geo_Infos,
                  lateral table(
                    
metricUdtf('aa')
                  ) as 
tmp(metric_id, metric_config)


Thanks
Jiazhi

回复