You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Query and analysis FAQ
Common errors in query and analysis
Copy page
Download PDF
Common errors in query and analysis
This article lists common errors and solutions encountered during query and analysis of logs.​
Sql syntax Error,details: line *:***: Cannot apply operator: bigint = varchar(10)​
  • Cause of error​
  • Use the long or double data types and the string type for comparison.​
  • Solution​
  • Convert string types to numeric types or numeric types to string types.​
Sql syntax Error,details: line *:***: Column *** cannot be resolved​
  • Cause of error​
  • No key-value index has been created for the batt field, and the statistics feature has not been enabled.​
  • Solution​
Notice​
The new index only applies to new data that is collected after the modification. The index for existing data will not update.​
Sql syntax Error,details: line *:***: Function *** not registered​
  • Cause of error​
  • The objective function does not exist.​
  • Solution​
  • Check whether the function name is spelled correctly. For SQL functions supported by TLS, please refer to the documentation.Function overview.​
Sql syntax Error,details: line *:***: mismatched input '***'. Expecting: 'ALL', 'ANY', 'SOME', <expression>​
  • Cause of error​
  • The corresponding position is missing a keyword.​
  • Solution​
  • Check whether the grammar is correct and make corrections.​
Sql syntax Error,details: Precheck failed: The key-value index for field (***) is not configured.​
  • Error cause​
  • Key-value index has not been configured for the field.​
  • Solution​
Notice​
The new index only applies to new data that is collected after the modification. The index for existing data will not update.​
Sql syntax Error,details: Table *** not found​
  • Cause of error​
  • The corresponding external data source or Topic does not exist.​
  • Solution​
  1. Check whether the spelling is correct.​
  1. Check whether the external data source has been created successfully and whether the connection test was successful.​
Sql syntax Error,details: line *:***: Unexpected parameters (varchar(1), bigint) for function concat_ws. Expected: concat_ws(varchar, array(varchar)), concat_ws(varchar, varchar)​
  • Cause of error​
  • The types of the function parameters passed in do not match the function's expectation.​
  • Solution​
  • Modify SQL functions in query and analysis statements. For information about SQL functions supported by TLS, you can see Function overview.​
Last updated: 2026.06.25 17:01:03