开发者社区 问答 正文

帮我找下哪里写错了,修复下

  • and message.invokeMethod: batchDeductResult and NORMAL not message.bizInfo.status: PROCESSING | SELECT date_format(submitTime, '%Y-%m-%d') as date, json_extract_scalar(message, '$.bizInfo.fundSource') AS fundSource, cast(json_extract_scalar(message, '$.bizInfo.deductHour') AS bigint) AS deductHour, CASE WHEN json_extract_scalar(message, '$.bizInfo.status')='SUCCESS' then '还款成功' else json_extract_scalar(message, '$.bizInfo.retMsg') end as reason,COUNT() as count, SUM(COUNT()) OVER (PARTITION BY json_extract_scalar(message, '$.bizInfo.fundSource'), cast(json_extract_scalar(message, '$.bizInfo.deductHour') AS bigint) ) AS totalRecords FROM log GROUP BY date,reason, fundSource, deductHour limit 1000000 这个SQL 报:type of symbol 'date_format' is expected to be timestamp, but the actual type is varchar 帮我找下哪里写错了,修复下

展开
收起
真的很搞笑 2024-08-01 14:16:00 19 分享 版权
0 条回答
写回答
取消 提交回答
问答分类:
SQL
问答地址: