Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11284

INSERT query with concat operator fails with 'Function not set in thrift node' error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.1.0
    • Impala 4.3.0
    • Frontend
    • None

    Description

      Steps to Reproduce:

      DROP TABLE t2;
      CREATE TABLE t2(c0 BOOLEAN, c1 STRING) STORED AS ICEBERG; 
      INSERT INTO t2(c0, c1) VALUES ( TRUE, ( 'abc' ||('927160245' || 'Q') ) );
      Error: Function not set in thrift node

      Looks like a regression introduced by IMPALA-6590.

      fn_ was previously serialized during rewrite in :

      treeToThriftHelper:FunctionCallExpr(Expr).treeToThriftHelper(TExpr) line: 866
      FunctionCallExpr(Expr).treeToThrift() line: 844 
      FeSupport.EvalExprWithoutRowBounded(Expr, TQueryCtx, int) line: 188
      LiteralExpr.createBounded(Expr, TQueryCtx, int) line: 210
      FoldConstantsRule.apply(Expr, Analyzer) line: 66
      ExprRewriter.applyRuleBottomUp(Expr, ExprRewriteRule, Analyzer) line: 85
      ExprRewriter.applyRuleRepeatedly(Expr, ExprRewriteRule, Analyzer) line: 71
      ExprRewriter.rewrite(Expr, Analyzer) line: 55   
      SelectList.rewriteExprs(ExprRewriter, Analyzer) line: 100
      SelectStmt.rewriteExprs(ExprRewriter) line: 1189
      ValuesStmt(SetOperationStmt).rewriteExprs(ExprRewriter) line: 467
      InsertStmt.rewriteExprs(ExprRewriter) line: 1119
      AnalysisContext.analyze(StmtMetadataLoader$StmtTableCache, AuthorizationContext) line: 537       

      Attachments

        Activity

          People

            rizaon Riza Suminto
            arawat Abhishek Rawat
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: