org.apache.spark.sql.AnalysisException: mismatched input 'AS' expecting ) near ''-'' in function specification; line 1 pos 43

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by fereshtehRS
, 1 year ago
mismatched input 'AS' expecting ) near ''-'' in function specification; line 1 pos 43
via Stack Overflow by Colman
, 1 year ago
missing EOF at 'MSCK' near 'testdatabase'; line 1 pos 17
via Stack Overflow by Hokam
, 2 months ago
cannot recognize input near 'MERGE' 'INTO' 'emp_with_orc'; line 1 pos 0
via GitHub by javierluraschi
, 3 months ago
cannot recognize input near '(' 'iris' 'TABLESAMPLE' in from source; line 1 pos 15
via Stack Overflow by Thanas
, 1 year ago
cannot recognize input near '$' 'AttributeDatabaseColumn' ',' in select clause; line 3 pos 1
via GitHub by Pyrobal
, 1 year ago
missing EOF at 'select' near 'EXCEPT'; line 1 pos 79
org.apache.spark.sql.AnalysisException: mismatched input 'AS' expecting ) near ''-'' in function specification; line 1 pos 43
at org.apache.spark.sql.hive.HiveQl$.createPlan(HiveQl.scala:318)
at org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:41)
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136)
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135)
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.