File tree Expand file tree Collapse file tree
catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis
core/src/test/scala/org/apache/spark/sql Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ class Analyzer(
406406 }
407407 )
408408 case g : Generate if containsStar(g.generator.children) =>
409- failAnalysis(" Cannot explode *, explode can only be applied on a specific column. " )
409+ failAnalysis(" Invalid usage of '*' in explode/json_tuple/UDTF " )
410410 }
411411
412412 /**
Original file line number Diff line number Diff line change @@ -178,8 +178,7 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
178178 csv.split(" ," ).map(v => Tuple1 (prefix + " :" + v)).toSeq
179179 }.queryExecution.assertAnalyzed()
180180 }
181- assert(e.getMessage.contains(
182- " Cannot explode *, explode can only be applied on a specific column." ))
181+ assert(e.getMessage.contains(" Invalid usage of '*' in explode/json_tuple/UDTF" ))
183182
184183 df.explode(' prefix , ' csv ) { case Row (prefix : String , csv : String ) =>
185184 csv.split(" ," ).map(v => Tuple1 (prefix + " :" + v)).toSeq
You can’t perform that action at this time.
0 commit comments