<?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 Autoload files in wide table format, but store it unpivot in Streaming Table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3769#M699</link>
    <description>&lt;P&gt;Hey, I get wide table format in csv file. Where each sensor have its own column. I want to store it in Delta Live Streaming Table. But since it is inefficient to process it and storage space, due to varying frequency and sensor amount. I want to transform into long format for the bronze raw data table.  Where it has ID, SensorID and Value as columns instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible with autoloader and Delta Live Streaming Table using for example melt function between?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 08:54:22 GMT</pubDate>
    <dc:creator>simensma</dc:creator>
    <dc:date>2023-06-01T08:54:22Z</dc:date>
    <item>
      <title>Autoload files in wide table format, but store it unpivot in Streaming Table</title>
      <link>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3769#M699</link>
      <description>&lt;P&gt;Hey, I get wide table format in csv file. Where each sensor have its own column. I want to store it in Delta Live Streaming Table. But since it is inefficient to process it and storage space, due to varying frequency and sensor amount. I want to transform into long format for the bronze raw data table.  Where it has ID, SensorID and Value as columns instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible with autoloader and Delta Live Streaming Table using for example melt function between?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 08:54:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3769#M699</guid>
      <dc:creator>simensma</dc:creator>
      <dc:date>2023-06-01T08:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Autoload files in wide table format, but store it unpivot in Streaming Table</title>
      <link>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3770#M700</link>
      <description>&lt;P&gt;@Simen Småriset​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a general outline of the steps you can follow:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set up your Delta Live Streaming Table using the Autoloader feature. This allows you to automatically load new data as it arrives in your specified directory.&lt;/LI&gt;&lt;LI&gt;Create a Databricks notebook or script where you'll perform the transformation. You can use programming languages like Python or Scala.&lt;/LI&gt;&lt;LI&gt;Use the Autoloader to read the incoming wide-format CSV files into a DataFrame. The Autoloader feature will automatically detect new files and load them into the DataFrame.&lt;/LI&gt;&lt;LI&gt;Perform the transformation from wide to long format using the melt function or any suitable logic. The melt function reshapes the DataFrame by unpivoting the sensor columns into rows, with columns for ID, SensorID, and Value.&lt;/LI&gt;&lt;LI&gt;Write the transformed DataFrame into a Delta table, which will serve as your bronze raw data table. This table will have the desired long-format structure with ID, SensorID, and Value as columns.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 03:06:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3770#M700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-06T03:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Autoload files in wide table format, but store it unpivot in Streaming Table</title>
      <link>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3771#M701</link>
      <description>&lt;P&gt;Hi @Simen Småriset​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope everything is going great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 10:58:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3771#M701</guid>
      <dc:creator>Vartika</dc:creator>
      <dc:date>2023-06-09T10:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Autoload files in wide table format, but store it unpivot in Streaming Table</title>
      <link>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3772#M702</link>
      <description>&lt;P&gt;Yes it was resolved, but loading it into long format instead of being wide formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks for the answers.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 12:09:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoload-files-in-wide-table-format-but-store-it-unpivot-in/m-p/3772#M702</guid>
      <dc:creator>simensma</dc:creator>
      <dc:date>2023-06-19T12:09:46Z</dc:date>
    </item>
  </channel>
</rss>

