我有一个看起来像这样的模式:表:org_table
`transaction_amt` VARCHAR(64) NOT NULL,
`transaction_adj_amt` BIGINT NOT NULL ,
`event_time` TIMESTAMP(3),
`fd_output` ROW<`restime` BIGINT `outcome` VARCHAR(64)>,
当我像这样查询此表时:
SELECT transaction_amt, transaction_adj_amt, event_time, fd_output.restime as response_time, fd_output.outcome as outcome, YEAR(event_time), MONTH(event_time)
FROM org_table
在表上运行上述查询时,出现错误。我在这里缺少什么吗?
scala.MatchError: CAST (of class org.apache.calcite.sql.fun.SqlCastFunction