I have a schema that looks like this: Table: 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)>,
When I query this table like this:
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
When running the above query on the table I am getting an error. Is there something I am missing here?
scala.MatchError: CAST (of class org.apache.calcite.sql.fun.SqlCastFunction