<?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 How to add Current date as one of the column in Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-add-current-date-as-one-of-the-column-in-databricks/m-p/11092#M6131</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/821iBA6D16A2EE1AD3BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/823i929412D41672EC19/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;I am trying to create new column "Ingest_date" in table which should contain current date. I am getting error "Current date cannot be used in a generated column". Can you please review and suggest alternative to get the current date in delta table. &lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 04:33:37 GMT</pubDate>
    <dc:creator>Neli</dc:creator>
    <dc:date>2023-01-20T04:33:37Z</dc:date>
    <item>
      <title>How to add Current date as one of the column in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-add-current-date-as-one-of-the-column-in-databricks/m-p/11092#M6131</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/821iBA6D16A2EE1AD3BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/823i929412D41672EC19/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;I am trying to create new column "Ingest_date" in table which should contain current date. I am getting error "Current date cannot be used in a generated column". Can you please review and suggest alternative to get the current date in delta table. &lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 04:33:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-add-current-date-as-one-of-the-column-in-databricks/m-p/11092#M6131</guid>
      <dc:creator>Neli</dc:creator>
      <dc:date>2023-01-20T04:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Current date as one of the column in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-add-current-date-as-one-of-the-column-in-databricks/m-p/11093#M6132</link>
      <description>&lt;P&gt;A generation expression can use any SQL functions in Spark that always return the same result when given the same argument values&lt;/P&gt;&lt;P&gt;Source: &lt;A href="https://docs.delta.io/latest/delta-batch.html#use-generated-columns" target="test_blank"&gt;https://docs.delta.io/latest/delta-batch.html#use-generated-columns&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means that it's intended to not work.&lt;/P&gt;&lt;P&gt;You can still insert the value of current_date() in your ingestion pipeline.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 07:59:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-add-current-date-as-one-of-the-column-in-databricks/m-p/11093#M6132</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-01-20T07:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Current date as one of the column in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-add-current-date-as-one-of-the-column-in-databricks/m-p/11094#M6133</link>
      <description>&lt;P&gt;Thank you Daniel. Appreciate your inputs. &lt;/P&gt;&lt;P&gt;This is the requirement which i am trying to achieve. I will create a table with 5 columns and 4 columns will be inserted by process . Ingest date column should be populated with current date when columns are inserted.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 19:39:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-add-current-date-as-one-of-the-column-in-databricks/m-p/11094#M6133</guid>
      <dc:creator>Neli</dc:creator>
      <dc:date>2023-01-20T19:39:55Z</dc:date>
    </item>
  </channel>
</rss>

