提交 2af45962 编写于 作者: dengyihao's avatar dengyihao

[TD-10413]<fix> fix scalar UDF on superTable return wrong result

上级 c7173ce1
...@@ -237,7 +237,7 @@ int32_t getResultDataInfo(int32_t dataType, int32_t dataBytes, int32_t functionI ...@@ -237,7 +237,7 @@ int32_t getResultDataInfo(int32_t dataType, int32_t dataBytes, int32_t functionI
if (isSuperTable) { if (isSuperTable) {
if (functionId < 0) { if (functionId < 0) {
if (pUdfInfo->bufSize > 0) { if (pUdfInfo->bufSize > 0 && pUdfInfo->funcType == TSDB_UDF_TYPE_AGGREGATE) {
*type = TSDB_DATA_TYPE_BINARY; *type = TSDB_DATA_TYPE_BINARY;
*bytes = pUdfInfo->bufSize; *bytes = pUdfInfo->bufSize;
*interBytes = *bytes; *interBytes = *bytes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册