File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed 
sql/core/src/main/scala/org/apache/spark/sql/execution/command Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -63,19 +63,6 @@ case class CreateMacroCommand(
6363        throw  new  AnalysisException (s " Cannot support Generator:  ${u}  "  + 
6464          s " for CREATE TEMPORARY MACRO  $macroName" )
6565    }
66-     macroFunction.transformUp {
67-       case  e : Expression  if  ! e.resolved => 
68-         if  (e.checkInputDataTypes().isFailure) {
69-           e.checkInputDataTypes() match  {
70-             case  TypeCheckResult .TypeCheckFailure (message) => 
71-               throw  new  AnalysisException (s " Cannot resolve ' ${e.sql}'  "  + 
72-                 s " for CREATE TEMPORARY MACRO  $macroName, due to data type mismatch:  $message" )
73-           }
74-         } else  {
75-           throw  new  AnalysisException (s " Cannot resolve ' ${e.sql}'  "  + 
76-             s " for CREATE TEMPORARY MACRO  $macroName  " )
77-         }
78-     }
7966
8067    val  macroInfo  =  columns.mkString(" ," +  "  -> " +  funcWrapper.macroFunction.toString
8168    val  info  =  new  ExpressionInfo (macroInfo, macroName)
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments