diff --git a/include/libs/function/taosudf.h b/include/libs/function/taosudf.h index 8277ff2c50..3e796da236 100644 --- a/include/libs/function/taosudf.h +++ b/include/libs/function/taosudf.h @@ -271,7 +271,7 @@ typedef enum EUdfFuncType { } EUdfFuncType; typedef struct SScriptUdfInfo { - char *name; + const char *name; EUdfFuncType funcType; int8_t scriptType; @@ -279,7 +279,7 @@ typedef struct SScriptUdfInfo { int32_t outputLen; int32_t bufSize; - char *path; + const char *path; } SScriptUdfInfo; typedef int32_t (*TScriptUdfScalarProcFunc)(SUdfDataBlock *block, SUdfColumn *resultCol, void *udfCtx);