<?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: Delta Live Tables with CDC and Database Views with Lower Case Names in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-with-cdc-and-database-views-with-lower-case/m-p/21523#M14685</link>
    <description>&lt;P&gt;Hi @Kaniz Fatma​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not found a solution just yet, but not a priority as most users will be accessing through Databricks SQL, so no further assistance required right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 22:09:57 GMT</pubDate>
    <dc:creator>zesdatascience</dc:creator>
    <dc:date>2022-06-07T22:09:57Z</dc:date>
    <item>
      <title>Delta Live Tables with CDC and Database Views with Lower Case Names</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-with-cdc-and-database-views-with-lower-case/m-p/21517#M14679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am testing out creating some Delta Live Tables using Change Data Capture and having an issue where the resulting views that are created have lower case column names. Here is my function I am using to ingest data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def raw_to_ods_merge(table_name,source_stream,file_description,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ods_path,primary_keys,sequence,table_prop,column_comments):&lt;/P&gt;&lt;P&gt;&amp;nbsp;ingest_name = table_name + '_ingest'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;output = source_stream \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.withColumn('ETL_InputFile',F.input_file_name()) \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.withColumn('ETL_LoadDate',F.lit(datetime.datetime.now()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;@dlt.view(&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;name = ingest_name&lt;/P&gt;&lt;P&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;def source_ingest():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;return (output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;dlt.create_target_table(name = table_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;comment = file_description,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;path = ods_path,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;table_properties=table_prop,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;schema = output.schema&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;dlt.apply_changes(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;target = table_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;source = ingest_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;keys = primary_keys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;sequence_by = sequence&lt;/P&gt;&lt;P&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is resulting in an __apply_change... table name with column names in mixed case as expected. However the view that gets created sets the output column names to lower case. e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE VIEW `raw`.`shopper_panel_korea` (&lt;/P&gt;&lt;P&gt;&amp;nbsp;`duration` COMMENT 'Length of time for which the metrics apply.',&lt;/P&gt;&lt;P&gt;&amp;nbsp;`period` COMMENT 'Date for which the metrics apply, the end of the date range.',&lt;/P&gt;&lt;P&gt;&amp;nbsp;`product`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`spend_1000000_krw`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`product_percent_of_category_value`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`retailer_percent_of_value`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`volume_1000_kg`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`product_percent_of_category_volume_1kg`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`retailer_percent_of_volume_1kg`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`buyers_1000`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`penetration_percent`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`frequency`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`trips_1000`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`performance`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`channel`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`domestic_or_import`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`etl_inputfile`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;`etl_loaddate`)&lt;/P&gt;&lt;P&gt;TBLPROPERTIES (&lt;/P&gt;&lt;P&gt;&amp;nbsp;'transient_lastDdlTime' = '1651620122')&lt;/P&gt;&lt;P&gt;AS SELECT `Duration`,`Period`,`Product`,`Spend_1000000_KRW`,`Product_Percent_of_Category_Value`,`Retailer_Percent_of_Value`,`Volume_1000_kg`,`Product_Percent_of_Category_Volume_1kg`,`Retailer_Percent_of_Volume_1kg`,`Buyers_1000`,`Penetration_Percent`,`Frequency`,`Trips_1000`,`Performance`,`Channel`,`Domestic_or_Import`,`ETL_InputFile`,`ETL_LoadDate` FROM `raw`.`__apply_changes_storage_shopper_panel_korea` WHERE __DeleteVersion IS NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I am doing wrong or is this an issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 23:48:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-with-cdc-and-database-views-with-lower-case/m-p/21517#M14679</guid>
      <dc:creator>zesdatascience</dc:creator>
      <dc:date>2022-05-03T23:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Tables with CDC and Database Views with Lower Case Names</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-with-cdc-and-database-views-with-lower-case/m-p/21520#M14682</link>
      <description>&lt;P&gt;Hi @Kaniz Fatma​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your email. Yes, I did look through the article shared. I am set up with Delta Live Tables and pipelines are working OK generally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was really just the one issue mentioned in the post with the lower case column names in the views when view through the Hive catalog. It was wondering whether this is a defect with the view creation which is handled automatically through Delta Live tables? Not sure other than this, where I would log that though?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I did notice was it looks fine through Databricks SQL. Unless it is something to do with the runtime version I was using, I'll check I am running on the latest and see if the issue is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 04:45:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-with-cdc-and-database-views-with-lower-case/m-p/21520#M14682</guid>
      <dc:creator>zesdatascience</dc:creator>
      <dc:date>2022-05-19T04:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Tables with CDC and Database Views with Lower Case Names</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-with-cdc-and-database-views-with-lower-case/m-p/21523#M14685</link>
      <description>&lt;P&gt;Hi @Kaniz Fatma​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not found a solution just yet, but not a priority as most users will be accessing through Databricks SQL, so no further assistance required right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 22:09:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-with-cdc-and-database-views-with-lower-case/m-p/21523#M14685</guid>
      <dc:creator>zesdatascience</dc:creator>
      <dc:date>2022-06-07T22:09:57Z</dc:date>
    </item>
  </channel>
</rss>

