<?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 Delta Live Tables Quality check for distinct Values in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-quality-check-for-distinct-values/m-p/21642#M14775</link>
    <description>&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;I have been having an issue identifying how to do a uniqueness check for the quality check. Below is an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@dlt.expect("origin_not_dup", "origin is distinct from origin")
def harmonized_data():
    df=dlt.read("raw_data")
    for col in df.columns:
        df = df.withColumnRenamed(col, col.lower())
    df=df.select("car", "mpg", "origin")
    return df&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;options that i tried. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;@dlt.expect("origin_not_dup", "origin is distinct from origin")&lt;/LI&gt;&lt;LI&gt;@dlt.expect("origin_not_dup", "origin is distinct")&lt;/LI&gt;&lt;LI&gt;@dlt.expect("origin_not_dup", "origin is unique")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;they all end up with an error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Delta live table is still relatively new, i wasn't able find how to do so. Any guidance is appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2022 15:34:29 GMT</pubDate>
    <dc:creator>Zii</dc:creator>
    <dc:date>2022-05-02T15:34:29Z</dc:date>
    <item>
      <title>Delta Live Tables Quality check for distinct Values</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-quality-check-for-distinct-values/m-p/21642#M14775</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;I have been having an issue identifying how to do a uniqueness check for the quality check. Below is an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@dlt.expect("origin_not_dup", "origin is distinct from origin")
def harmonized_data():
    df=dlt.read("raw_data")
    for col in df.columns:
        df = df.withColumnRenamed(col, col.lower())
    df=df.select("car", "mpg", "origin")
    return df&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;options that i tried. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;@dlt.expect("origin_not_dup", "origin is distinct from origin")&lt;/LI&gt;&lt;LI&gt;@dlt.expect("origin_not_dup", "origin is distinct")&lt;/LI&gt;&lt;LI&gt;@dlt.expect("origin_not_dup", "origin is unique")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;they all end up with an error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Delta live table is still relatively new, i wasn't able find how to do so. Any guidance is appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 15:34:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-quality-check-for-distinct-values/m-p/21642#M14775</guid>
      <dc:creator>Zii</dc:creator>
      <dc:date>2022-05-02T15:34:29Z</dc:date>
    </item>
  </channel>
</rss>

