<?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: Databricks 2.6.25 JDBC driver can't create tables with `GENERATED` columns in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-2-6-25-jdbc-driver-can-t-create-tables-with-generated/m-p/21387#M14566</link>
    <description>&lt;P&gt;@Kaniz Fatma​&amp;nbsp;@Vartika Nain​&amp;nbsp;can we report it as a BUG?&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 15:43:59 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2022-05-06T15:43:59Z</dc:date>
    <item>
      <title>Databricks 2.6.25 JDBC driver can't create tables with `GENERATED` columns</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-2-6-25-jdbc-driver-can-t-create-tables-with-generated/m-p/21386#M14565</link>
      <description>&lt;P&gt;I'm using the Databricks JDBC driver recently made available via Maven:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mvnrepository.com/artifact/com.databricks/databricks-jdbc/2.6.25" alt="https://mvnrepository.com/artifact/com.databricks/databricks-jdbc/2.6.25" target="_blank"&gt;https://mvnrepository.com/artifact/com.databricks/databricks-jdbc/2.6.25&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While trying to create a table with `GENERATED` columns I receive the following exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Caused by: java.sql.SQLException: [Databricks][DatabricksJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: Error running query: org.apache.spark.sql.catalyst.parser.ParseException: 
no viable alternative at input 'CREATE TABLE default.test_generated_columns_not_supported_sbju2lhx0065(  id INT,  a_number INT,  a_number_times_two INT GENERATED'(line 1, pos 120)
&amp;nbsp;
== SQL ==
CREATE TABLE default.test_generated_columns_not_supported_sbju2lhx0065(  id INT,  a_number INT,  a_number_times_two INT GENERATED ALWAYS AS (a_number * 2)) USING DELTA
------------------------------------------------------------------------------------------------------------------------^^^
, Query: CREATE TABLE default.test_generated_columns_not_supported_sbju2lhx0065(  id INT,  a_number INT,  a_number_times_two INT GENERATED ALWAYS AS (a_number * 2)) USING DELTA.
	at com.databricks.client.hivecommon.api.HS2Client.buildExceptionFromTStatusSqlState(Unknown Source)
	at com.databricks.client.hivecommon.api.HS2Client.pollForOperationCompletion(Unknown Source)
	at com.databricks.client.hivecommon.api.HS2Client.executeStatementInternal(Unknown Source)
	at com.databricks.client.hivecommon.api.HS2Client.executeStatement(Unknown Source)
	at com.databricks.client.hivecommon.dataengine.HiveJDBCNativeQueryExecutor.executeRowCountQueryHelper(Unknown Source)
	at com.databricks.client.hivecommon.dataengine.HiveJDBCNativeQueryExecutor.execute(Unknown Source)
	at com.databricks.client.jdbc.common.SStatement.executeNoParams(Unknown Source)
	at com.databricks.client.jdbc.common.BaseStatement.execute(Unknown Source)
	at com.databricks.client.hivecommon.jdbc42.Hive42Statement.execute(Unknown Source)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This query was working fine when I was using  simba spark-jdbc42 2.6.16.&lt;/P&gt;&lt;P&gt;I've tried running the query also in a Databricks Community Cloud Notebook and there it was executed just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a regression issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 08:38:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-2-6-25-jdbc-driver-can-t-create-tables-with-generated/m-p/21386#M14565</guid>
      <dc:creator>findinpath</dc:creator>
      <dc:date>2022-05-06T08:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks 2.6.25 JDBC driver can't create tables with `GENERATED` columns</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-2-6-25-jdbc-driver-can-t-create-tables-with-generated/m-p/21387#M14566</link>
      <description>&lt;P&gt;@Kaniz Fatma​&amp;nbsp;@Vartika Nain​&amp;nbsp;can we report it as a BUG?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 15:43:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-2-6-25-jdbc-driver-can-t-create-tables-with-generated/m-p/21387#M14566</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-05-06T15:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks 2.6.25 JDBC driver can't create tables with `GENERATED` columns</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-2-6-25-jdbc-driver-can-t-create-tables-with-generated/m-p/21389#M14568</link>
      <description>&lt;P&gt;I was under the impression that this has been recognised as a BUG and is being handled by Databricks.&lt;/P&gt;&lt;P&gt;What do I need to do for reporting the issue officially as a BUG?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 04:43:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-2-6-25-jdbc-driver-can-t-create-tables-with-generated/m-p/21389#M14568</guid>
      <dc:creator>findinpath</dc:creator>
      <dc:date>2022-05-19T04:43:40Z</dc:date>
    </item>
  </channel>
</rss>

