Skip to content

Commit 9bd4433

Browse files
committed
Better error on parse failures.
1 parent d52761d commit 9bd4433

File tree

1 file changed

+5
-0
lines changed
  • sql/hive/src/main/scala/org/apache/spark/sql/hive

1 file changed

+5
-0
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ private[hive] object HiveQl {
233233
}
234234
} catch {
235235
case e: Exception => throw new ParseException(sql, e)
236+
case e: NotImplementedError => sys.error(
237+
s"""
238+
|Unsupported language features in query: $sql
239+
|${dumpTree(getAst(sql))}
240+
""".stripMargin)
236241
}
237242
}
238243

0 commit comments

Comments
 (0)