【问题标题】:AGE function causing the following error: ERROR: Specified types or functions (one per INFO message) not supported on Redshift tablesAGE 函数导致以下错误:错误:Redshift 表不支持指定的类型或函数(每个 INFO 消息一个)
【发布时间】:2019-05-03 16:34:14
【问题描述】:

我不明白为什么会收到此错误。似乎是一个简单的查询。

select *,age(last_order,first_order_date) from
(
    select organization,first_order_date::date, max(delivery_date::date) as last_order
    from [orderdetailreport]
    group by organization,first_order_date::date
)a


【问题讨论】:

    标签: amazon-redshift


    【解决方案1】:

    AGE() 函数不支持对用户数据的查询。

    更多信息在这里:"Leader Node–Only Functions"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-11
      • 2022-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多