【问题标题】:Array defintion in Teradata Aggregate UDFTeradata 聚合 UDF 中的数组定义
【发布时间】:2016-04-21 05:44:22
【问题描述】:

我正在尝试在 teradata 中创建聚合 UDF 函数。

作为其中的一部分,我试图在中间存储中标记一个数组。

当我尝试将其链接到 teradata 时,它不断抛出以下错误。

Executed as Single statement.  Failed [7504 : HY000] in UDF/XSP/UDM DBC.IRR: SQLSTATE U0001: 
Elapsed time = 00:00:01.628 

STATEMENT 1: Select Statement failed. 

这是我合并数组的代码。

语法有什么问题吗?

#include <sqltypes_td.h>
#include <string.h>
#include <math.h>
typedef struct agr_storage {
        FLOAT count;
        FLOAT val1,val2,val3,val4;
    FLOAT res[100]; // This is my array
} AGR_Storage;

【问题讨论】:

    标签: arrays teradata udf


    【解决方案1】:

    Teradata 将每个中间块的大小限制为 64 字节,在上面的代码中,我们试图声明一个大小为 800 字节的数组。

    这是错误的原因。

    【讨论】:

    猜你喜欢
    • 2010-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-23
    • 2018-08-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多