<?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 Why does DLT CDC some time manifests the results table as a table and other times as a view? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/why-does-dlt-cdc-some-time-manifests-the-results-table-as-a/m-p/15292#M9634</link>
    <description>&lt;P&gt;I have a simple DLT pipeline that reads from an existing table, do some transformations, saves to a view, and then uses&amp;nbsp;dlt.apply_changes() to insert the view into a results table. My question is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;why is my results table a view and not a table like I expected? (in another pipeline where&amp;nbsp;dlt.apply_changes() is used, the target table is manifested as a table)&lt;/LI&gt;&lt;LI&gt;if I create an empty results table ahead of time, then why does the pipeline complain that the table already exists?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@dlt.view(name = "cool_table")
def transform_uncool_table():
    return (spark.readStream
                           .option("ignoreChanges", "true")
                           .table("uncool_table")
    )
&amp;nbsp;
dlt.create_streaming_live_table(
    name = "target_table",
    table_properties={ "quality": "gold" }
)
&amp;nbsp;
dlt.apply_changes(
    target = "target_table",
    source = "cool_table",
    keys = ["pair_hash"],
    sequence_by = "last_seen"
) &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 19:37:30 GMT</pubDate>
    <dc:creator>Jennifer_Lu</dc:creator>
    <dc:date>2022-12-21T19:37:30Z</dc:date>
    <item>
      <title>Why does DLT CDC some time manifests the results table as a table and other times as a view?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-does-dlt-cdc-some-time-manifests-the-results-table-as-a/m-p/15292#M9634</link>
      <description>&lt;P&gt;I have a simple DLT pipeline that reads from an existing table, do some transformations, saves to a view, and then uses&amp;nbsp;dlt.apply_changes() to insert the view into a results table. My question is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;why is my results table a view and not a table like I expected? (in another pipeline where&amp;nbsp;dlt.apply_changes() is used, the target table is manifested as a table)&lt;/LI&gt;&lt;LI&gt;if I create an empty results table ahead of time, then why does the pipeline complain that the table already exists?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@dlt.view(name = "cool_table")
def transform_uncool_table():
    return (spark.readStream
                           .option("ignoreChanges", "true")
                           .table("uncool_table")
    )
&amp;nbsp;
dlt.create_streaming_live_table(
    name = "target_table",
    table_properties={ "quality": "gold" }
)
&amp;nbsp;
dlt.apply_changes(
    target = "target_table",
    source = "cool_table",
    keys = ["pair_hash"],
    sequence_by = "last_seen"
) &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 19:37:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-does-dlt-cdc-some-time-manifests-the-results-table-as-a/m-p/15292#M9634</guid>
      <dc:creator>Jennifer_Lu</dc:creator>
      <dc:date>2022-12-21T19:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why does DLT CDC some time manifests the results table as a table and other times as a view?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-does-dlt-cdc-some-time-manifests-the-results-table-as-a/m-p/15293#M9635</link>
      <description>&lt;P&gt;I find most of my apply_changes tables are being created as materialized views as well. They do recalculate at runtime, so they're up to date and behave a lot like a table, but they aren't tables in the same sense.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 07:36:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-does-dlt-cdc-some-time-manifests-the-results-table-as-a/m-p/15293#M9635</guid>
      <dc:creator>Jfoxyyc</dc:creator>
      <dc:date>2022-12-29T07:36:13Z</dc:date>
    </item>
  </channel>
</rss>

