I have seen a similar error message when connecting to Hive through JDBC. This is just a guess on my part, but check your query. The error occurs if you have a select that includes a null literal with an alias like this:
select a, b, null as c, d from foo In my case, rewriting the query to use an empty string or other literal instead of null worked: select a, b, '' as c, d from foo I think the problem is the lack of type information when supplying a null literal. -- View this message in context: http://apache-spark-developers-list.1001551.n3.nabble.com/get-101-error-code-when-running-select-query-tp6377p6382.html Sent from the Apache Spark Developers List mailing list archive at Nabble.com.