enh: safetyCheck config

This commit is contained in:
xsren 2024-10-23 06:20:51 +08:00
parent f57e3f3c85
commit 2ae51f3118
3 changed files with 5 additions and 3 deletions

View File

@ -139,7 +139,7 @@ bool tsEnableCrashReport = true;
#endif
char *tsClientCrashReportUri = "/ccrashreport";
char *tsSvrCrashReportUri = "/dcrashreport";
bool tsEnableSafetyCheck = true;
bool tsEnableSafetyCheck = false;
// schemaless
bool tsSmlDot2Underline = true;

View File

@ -86,7 +86,7 @@ static int32_t inputSafetyCheck(SDataDispatchHandle* pHandle, const SInputData*
}
if (numOfCols > taosArrayGetSize(pInput->pData->pDataBlock)) {
qError("invalid column number, schema:%d, input:%" PRIu64, numOfCols, taosArrayGetSize(pInput->pData->pDataBlock));
qError("invalid column number, schema:%d, input:%zu", numOfCols, taosArrayGetSize(pInput->pData->pDataBlock));
return TSDB_CODE_QRY_INVALID_INPUT;
}

View File

@ -48,6 +48,7 @@ class TDSimClient:
"telemetryReporting": "0",
"tqDebugflag": "135",
"stDebugflag":"135",
"enableSafetyCheck":"1"
}
def getLogDir(self):
@ -149,7 +150,8 @@ class TDDnode:
"statusInterval": "1",
"enableQueryHb": "1",
"supportVnodes": "1024",
"telemetryReporting": "0"
"telemetryReporting": "0",
"enableSafetyCheck":"1"
}
def init(self, path, remoteIP = ""):