我在 AWS Kinesis 应用程序中有此代码:
CREATE OR REPLACE STREAM "OUT_FILE" (
"fechaTS" timestamp,
"celda" varchar(25),
"Field1" DOUBLE,
"Field2" DOUBLE,
"ANOMALY_SCORE" DOUBLE,
"ANOMALY_EXPLANATION" varchar(1024)
);
CREATE OR REPLACE PUMP "PMP_OUT" AS
INSERT INTO "OUT_FILE"
SELECT STREAM
"fechaTS",
"celda",
"Field1",
"Field2",
"ANOMALY_SCORE",
"ANOMALY_EXPLANATION"
FROM TABLE(RANDOM_CUT_FOREST_WITH_EXPLANATION(
CURSOR(SELECT STREAM * FROM "SOURCE_SQL_STREAM_001"), 300, 512, 8064, 4, true))
WHERE "celda" = 'CELLNUMBER'
;
我只是期望每个输入记录的异常分数计算的通常输出。
相反,我收到此错误消息:
Number of numeric attributes should be less than or equal to 30 (Please check the documentation to know the supported numeric SQL types)
我输入模型的数字属性的数量只有 2。另一方面,支持的 SQL 数字类型是这些,根据文档:DOUBLE、INTEGER、FLOAT、TINYINT、SMALLINT、REAL 和 BIGINT。(我也尝试过使用 FLOAT)。
我究竟做错了什么?