<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GET_COLUMNS fails with Unexpected character (\\'t\\' (code 116)): was expecting comma to separate Object entries - how to fix? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/get-columns-fails-with-unexpected-character-t-code-116-was/m-p/13204#M7918</link>
    <description>&lt;P&gt;this can be package issue or runtime issue, try to change both&lt;/P&gt;</description>
    <pubDate>Sat, 07 Jan 2023 16:04:55 GMT</pubDate>
    <dc:creator>Aviral-Bhardwaj</dc:creator>
    <dc:date>2023-01-07T16:04:55Z</dc:date>
    <item>
      <title>GET_COLUMNS fails with Unexpected character (\\'t\\' (code 116)): was expecting comma to separate Object entries - how to fix?</title>
      <link>https://community.databricks.com/t5/data-engineering/get-columns-fails-with-unexpected-character-t-code-116-was/m-p/13203#M7917</link>
      <description>&lt;P&gt;I just run `cursor.columns()` via the python client and I'll get back a `org.apache.hive.service.cli.HiveSQLException` as response. There is also a long stack trace, I'll just paste the last bit because it might be illuminating:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; org.apache.spark.sql.hive.thriftserver.HiveThriftServerErrors$:hiveOperatingError:HiveThriftServerErrors.scala:66
 org.apache.spark.sql.hive.thriftserver.HiveThriftServerErrors$:hiveOperatingError:HiveThriftServerErrors.scala:60
 org.apache.spark.sql.hive.thriftserver.SparkAsyncOperation$$anonfun$onError$1:applyOrElse:SparkAsyncOperation.scala:196
 org.apache.spark.sql.hive.thriftserver.SparkAsyncOperation$$anonfun$onError$1:applyOrElse:SparkAsyncOperation.scala:181
 scala.runtime.AbstractPartialFunction:apply:AbstractPartialFunction.scala:38
 org.apache.spark.sql.hive.thriftserver.SparkAsyncOperation:$anonfun$wrappedExecute$1:SparkAsyncOperation.scala:169
 scala.runtime.java8.JFunction0$mcV$sp:apply:JFunction0$mcV$sp.java:23
 com.databricks.unity.EmptyHandle$:runWith:UCSHandle.scala:103
 org.apache.spark.sql.hive.thriftserver.SparkAsyncOperation:org$apache$spark$sql$hive$thriftserver$SparkAsyncOperation$$wrappedExecute:SparkAsyncOperation.scala:144
 org.apache.spark.sql.hive.thriftserver.SparkAsyncOperation:runInternal:SparkAsyncOperation.scala:79
 org.apache.spark.sql.hive.thriftserver.SparkAsyncOperation:runInternal$:SparkAsyncOperation.scala:44
 org.apache.spark.sql.hive.thriftserver.SparkGetColumnsOperation:runInternal:SparkGetColumnsOperation.scala:54
 org.apache.hive.service.cli.operation.Operation:run:Operation.java:383
 org.apache.spark.sql.hive.thriftserver.SparkGetColumnsOperation:org$apache$spark$sql$hive$thriftserver$SparkOperation$$super$run:SparkGetColumnsOperation.scala:54
 org.apache.spark.sql.hive.thriftserver.SparkOperation:run:SparkOperation.scala:113
 org.apache.spark.sql.hive.thriftserver.SparkOperation:run$:SparkOperation.scala:111
 org.apache.spark.sql.hive.thriftserver.SparkGetColumnsOperation:run:SparkGetColumnsOperation.scala:54
 org.apache.hive.service.cli.session.HiveSessionImpl:getColumns:HiveSessionImpl.java:704
 org.apache.hive.service.cli.CLIService:getColumns:CLIService.java:411
 org.apache.hive.service.cli.thrift.OSSTCLIServiceIface:GetColumns:ThriftCLIService.java:1159
 com.databricks.sql.hive.thriftserver.thrift.DelegatingThriftHandler:GetColumns:DelegatingThriftHandler.scala:81&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The request looked as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TGetColumnsReq(
    sessionHandle=TSessionHandle(
        sessionId=THandleIdentifier(...), serverProtocolVersion=None
    ),
    catalogName=None,
    schemaName=None,
    tableName=None,
    columnName=None,
    getDirectResults=TSparkGetDirectResults(maxRows=100000, maxBytes=10485760),
    runAsync=False,
    operationId=None,
    sessionConf=None,
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The summary is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;databricks receives the thrift request&lt;/LI&gt;&lt;LI&gt;databricks propagates it down to the hive thrift layer&lt;/LI&gt;&lt;LI&gt;the hive layer fails with a SQL error&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anybody encountered this before? What would be the solution here?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 22:02:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-columns-fails-with-unexpected-character-t-code-116-was/m-p/13203#M7917</guid>
      <dc:creator>yzaehringer</dc:creator>
      <dc:date>2023-01-06T22:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: GET_COLUMNS fails with Unexpected character (\\'t\\' (code 116)): was expecting comma to separate Object entries - how to fix?</title>
      <link>https://community.databricks.com/t5/data-engineering/get-columns-fails-with-unexpected-character-t-code-116-was/m-p/13204#M7918</link>
      <description>&lt;P&gt;this can be package issue or runtime issue, try to change both&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 16:04:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-columns-fails-with-unexpected-character-t-code-116-was/m-p/13204#M7918</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2023-01-07T16:04:55Z</dc:date>
    </item>
  </channel>
</rss>

