fix: use const for name and path in SScriptUdfInfo

This commit is contained in:
slzhou 2023-02-28 10:39:08 +08:00
parent 32ccc796a1
commit 029444e1c2
1 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ typedef enum EUdfFuncType {
} EUdfFuncType; } EUdfFuncType;
typedef struct SScriptUdfInfo { typedef struct SScriptUdfInfo {
char *name; const char *name;
EUdfFuncType funcType; EUdfFuncType funcType;
int8_t scriptType; int8_t scriptType;
@ -279,7 +279,7 @@ typedef struct SScriptUdfInfo {
int32_t outputLen; int32_t outputLen;
int32_t bufSize; int32_t bufSize;
char *path; const char *path;
} SScriptUdfInfo; } SScriptUdfInfo;
typedef int32_t (*TScriptUdfScalarProcFunc)(SUdfDataBlock *block, SUdfColumn *resultCol, void *udfCtx); typedef int32_t (*TScriptUdfScalarProcFunc)(SUdfDataBlock *block, SUdfColumn *resultCol, void *udfCtx);