<?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: AWS Glue Catalog w/ Delta Tables Connected to Databricks SQL Engine - Incompatible format detected. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34745#M25471</link>
    <description>&lt;P&gt;Unfortunately I'm not trying to read to and from AWS Glue jobs. This is strictly to query data through Databricks SQL Engine referenced in the Glue Catalog that points to Delta Lake Tables&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2022 14:39:11 GMT</pubDate>
    <dc:creator>nickagel</dc:creator>
    <dc:date>2022-08-13T14:39:11Z</dc:date>
    <item>
      <title>AWS Glue Catalog w/ Delta Tables Connected to Databricks SQL Engine - Incompatible format detected.</title>
      <link>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34742#M25468</link>
      <description>&lt;P&gt;I've posted the same question on &lt;A href="https://stackoverflow.com/questions/73331633/glue-catalog-w-delta-tables-connected-to-databricks-sql-engine/73332019#73332019" alt="https://stackoverflow.com/questions/73331633/glue-catalog-w-delta-tables-connected-to-databricks-sql-engine/73332019#73332019" target="_blank"&gt;stack overflow&lt;/A&gt; to try to maximize reach here &amp;amp; potentially raise this issue to Databricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to query delta tables from my AWS Glue Catalog on Databricks SQL Engine. They are stored in Delta Lake format. I have glue crawlers automating schemas. The catalog is setup &amp;amp; functioning with non Delta Tables. The setup via databricks loads the available tables per database via the catalog &amp;amp; but the query fails due to databricks using hive instead of delta to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Incompatible format detected.
&amp;nbsp;
A transaction log for Databricks Delta was found at `s3://COMPANY/club/attachment/_delta_log`,
but you are trying to read from `s3://COMPANY/club/attachment` using format("hive"). You must use
'format("delta")' when reading and writing to a delta table.
&amp;nbsp;
To disable this check, SET spark.databricks.delta.formatCheck.enabled=false
To learn more about Delta, see &lt;A href="https://docs.databricks.com/delta/index.html" target="test_blank"&gt;https://docs.databricks.com/delta/index.html&lt;/A&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;SQL Warehouse settings =&amp;gt; Data Access Configuration&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.databricks.hive.metastore.glueCatalog.enabled : true&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The crawler using DELTA LAKE setup from AWS produces the following table metadata&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{
    "StorageDescriptor": {
        "cols": {
            "FieldSchema": [
                {
                    "name": "id",
                    "type": "string",
                    "comment": ""
                },
                {
                    "name": "media",
                    "type": "string",
                    "comment": ""
                },
                {
                    "name": "media_type",
                    "type": "string",
                    "comment": ""
                },
                {
                    "name": "title",
                    "type": "string",
                    "comment": ""
                },
                {
                    "name": "type",
                    "type": "smallint",
                    "comment": ""
                },
                {
                    "name": "clubmessage_id",
                    "type": "string",
                    "comment": ""
                }
            ]
        },
        "location": "s3://COMPANY/club/attachment/_symlink_format_manifest",
        "inputFormat": "org.apache.hadoop.hive.ql.io.SymlinkTextInputFormat",
        "outputFormat": "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat",
        "compressed": "false",
        "numBuckets": "-1",
        "SerDeInfo": {
            "name": "",
            "serializationLib": "org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe",
            "parameters": {}
        },
        "bucketCols": [],
        "sortCols": [],
        "parameters": {
            "UPDATED_BY_CRAWLER": "CRAWLER_NAME",
            "CrawlerSchemaSerializerVersion": "1.0",
            "CrawlerSchemaDeserializerVersion": "1.0",
            "classification": "parquet"
        },
        "SkewedInfo": {},
        "storedAsSubDirectories": "false"
    },
    "parameters": {
        "UPDATED_BY_CRAWLER": "CRAWLER_NAME",
        "CrawlerSchemaSerializerVersion": "1.0",
        "CrawlerSchemaDeserializerVersion": "1.0",
        "classification": "parquet"
    }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 09:51:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34742#M25468</guid>
      <dc:creator>nickagel</dc:creator>
      <dc:date>2022-08-12T09:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: AWS Glue Catalog w/ Delta Tables Connected to Databricks SQL Engine - Incompatible format detected.</title>
      <link>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34743#M25469</link>
      <description>&lt;P&gt;I have an intermediate solution to get it working with databricks. But I don't think this is a proper solution for the problem at hand &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{
            "Sid": "BlockDeltaLog",
            "Effect": "Deny",
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::BUCKET"
            ],
            "Condition": {
                "StringLike": {
                    "s3:prefix": [
                        "**_delta_log/**"
                    ]
                }
            }
        }&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 11:24:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34743#M25469</guid>
      <dc:creator>nickagel</dc:creator>
      <dc:date>2022-08-12T11:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: AWS Glue Catalog w/ Delta Tables Connected to Databricks SQL Engine - Incompatible format detected.</title>
      <link>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34744#M25470</link>
      <description>&lt;P&gt;By default AWS Glue support only parquet.&lt;/P&gt;&lt;P&gt;You can use the connector from the marketplace &lt;A href="https://go.aws/3pdgoiG" target="test_blank"&gt;https://go.aws/3pdgoiG&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 17:27:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34744#M25470</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-08-12T17:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: AWS Glue Catalog w/ Delta Tables Connected to Databricks SQL Engine - Incompatible format detected.</title>
      <link>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34745#M25471</link>
      <description>&lt;P&gt;Unfortunately I'm not trying to read to and from AWS Glue jobs. This is strictly to query data through Databricks SQL Engine referenced in the Glue Catalog that points to Delta Lake Tables&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 14:39:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34745#M25471</guid>
      <dc:creator>nickagel</dc:creator>
      <dc:date>2022-08-13T14:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: AWS Glue Catalog w/ Delta Tables Connected to Databricks SQL Engine - Incompatible format detected.</title>
      <link>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34746#M25472</link>
      <description>&lt;P&gt;Hi @Nick Agel​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 04:41:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34746#M25472</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-11T04:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: AWS Glue Catalog w/ Delta Tables Connected to Databricks SQL Engine - Incompatible format detected.</title>
      <link>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34747#M25473</link>
      <description>&lt;P&gt;So furthermore, my temp solution as you may have noticed includes all version of the Delta tables &amp;amp; contains N number of duplicate records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have in my production systems now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sql = f"CREATE TABLE IF NOT EXISTS {deltalake_glue_database_name}.{table_name} USING DELTA LOCATION '{location}'"
spark.sql(sql)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It runs every batch. I'm still conducting more validation as I'm still getting reported numbers being a little off.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 07:40:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/aws-glue-catalog-w-delta-tables-connected-to-databricks-sql/m-p/34747#M25473</guid>
      <dc:creator>nickagel</dc:creator>
      <dc:date>2022-09-14T07:40:15Z</dc:date>
    </item>
  </channel>
</rss>

