<?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 Adding new field to Delta live Table in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/adding-new-field-to-delta-live-table/m-p/63530#M6773</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have on Bronze layer all delta merge files (Parquet) format.&lt;/P&gt;&lt;P&gt;I am converting these files into delta live tables in silver layer. While doing so, I am unable to add current time stamp column.&lt;/P&gt;&lt;P&gt;Following is the script:&lt;/P&gt;&lt;P&gt;from pyspark.sql.functions import *&lt;BR /&gt;from pyspark.sql.types import *&lt;BR /&gt;import dlt&lt;BR /&gt;currentdate= spark.sql("select string(current_timestamp)").collect()[0][0]&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97035"&gt;@Dlt&lt;/a&gt;.table&lt;BR /&gt;def t_stream_silver_00_XXXX():&lt;BR /&gt;return (&lt;BR /&gt;spark.readStream&lt;BR /&gt;.format("delta")&lt;BR /&gt;.option("cloudFiles.format", "parquet")&lt;BR /&gt;.option(key = "SILVER_LOADING_TIME", value =currentdate)&lt;BR /&gt;.load("abfss://bronze-prod-XXXXX@adlsg2SAPPPPpsi001.dfs.core.windows.net/PROD/XXXX/Delta/00_XXXX/")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;it didt not throw any error at the same time no column being added. Can you please help?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 11:56:13 GMT</pubDate>
    <dc:creator>Madalian</dc:creator>
    <dc:date>2024-03-13T11:56:13Z</dc:date>
    <item>
      <title>Adding new field to Delta live Table</title>
      <link>https://community.databricks.com/t5/get-started-discussions/adding-new-field-to-delta-live-table/m-p/63530#M6773</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have on Bronze layer all delta merge files (Parquet) format.&lt;/P&gt;&lt;P&gt;I am converting these files into delta live tables in silver layer. While doing so, I am unable to add current time stamp column.&lt;/P&gt;&lt;P&gt;Following is the script:&lt;/P&gt;&lt;P&gt;from pyspark.sql.functions import *&lt;BR /&gt;from pyspark.sql.types import *&lt;BR /&gt;import dlt&lt;BR /&gt;currentdate= spark.sql("select string(current_timestamp)").collect()[0][0]&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97035"&gt;@Dlt&lt;/a&gt;.table&lt;BR /&gt;def t_stream_silver_00_XXXX():&lt;BR /&gt;return (&lt;BR /&gt;spark.readStream&lt;BR /&gt;.format("delta")&lt;BR /&gt;.option("cloudFiles.format", "parquet")&lt;BR /&gt;.option(key = "SILVER_LOADING_TIME", value =currentdate)&lt;BR /&gt;.load("abfss://bronze-prod-XXXXX@adlsg2SAPPPPpsi001.dfs.core.windows.net/PROD/XXXX/Delta/00_XXXX/")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;it didt not throw any error at the same time no column being added. Can you please help?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 11:56:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/adding-new-field-to-delta-live-table/m-p/63530#M6773</guid>
      <dc:creator>Madalian</dc:creator>
      <dc:date>2024-03-13T11:56:13Z</dc:date>
    </item>
  </channel>
</rss>

