Updated on 2024-03-15 GMT+08:00

GAUSS-04581 -- GAUSS-04590

GAUSS-04581: "Codegen failed on the procedure of ExecVecQual!"

SQLSTATE: XX000

Description: If an expression is not properly handled when the general IR function is generated, the codegen function fails to be used.

Solution: Contact technical support. Ensure that the query meets the code generation requirements and set enable_codegen to off.

GAUSS-04582: "Codegen faild on ScalarArrayOp : datatype %d is not supported yet!\n"

SQLSTATE: XX000

Description: When this data type exists in the arrayop expression, the code generating function is not supported.

Solution: Contact technical support. Ensure that the operation is within the restriction range and set enable_codegen to off.

GAUSS-04583: "The operator is not supported for codegen in CASE WHEN expr!"

SQLSTATE: XX000

Description: If casearg is not empty, the equivalent operations of this data type are not supported.

Solution: Contact technical support. Ensure that the operation is within the restriction range and set enable_codegen to off.

GAUSS-04584: "Codegen failed on the first argument of FuncExpr!\n"

SQLSTATE: XX000

Description: The first parameter fails to be handled when the function parameters are processed, resulting in that the codes cannot be generated and an error is reported.

Solution: Contact technical support. Ensure that the current function is valid and set enable_codegen to off.

GAUSS-04585: "Codegen failed on the second argument of FuncExpr!\n"

SQLSTATE: XX000

Description: The second parameter fails to be handled when the function parameters are processed, resulting in that the codes cannot be generated and an error is reported.

Solution: Contact technical support. Ensure that the current function is valid and set enable_codegen to off.

GAUSS-04586: "Codegen failed on the third argument of FuncExpr!\n"

SQLSTATE: XX000

Description: The third parameter fails to be handled when the function parameters are processed, resulting in that the codes cannot be generated and an error is reported.

Solution: Contact technical support. Ensure that the current function is valid and set enable_codegen to off.

GAUSS-04587: "Operation is not supported yet!"

SQLSTATE: XX000

Description: The current operation is not supported by LLVM. An error is reported to prevent subsequent invalid operations.

Solution: Contact technical support. Ensure that the operation is within the restriction range and set enable_codegen to off.

GAUSS-04588: "Failed to create LLVM state object ExecutionEngine: %s"

SQLSTATE: 42704

Description: When the current module is complied, you need to mount it to an execution engine. If this execution engine fails to be created, an error is reported to prevent subsequent invalid operations.

Solution: Create the engine again or set enable_codegen to off to complete this query.

GAUSS-04589: "Codegen failed on verifying IR function %s."

SQLSTATE: 42883

Description: The IR function obtained based on the code is invalid or has defects.

Solution: Set enable_codegen to off. Contact technical support.

GAUSS-04590: "Failed to create llvm function prototype."

SQLSTATE: XX000

Description: An error is reported because the LLVM function prototype fails to be declared.

Solution: Try again or set enable_codegen to off.