<?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: i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Go in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83907#M37062</link>
    <description>&lt;P&gt;Thank You&amp;nbsp; Rishabh.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 10:14:05 GMT</pubDate>
    <dc:creator>PraveenReddy21</dc:creator>
    <dc:date>2024-08-22T10:14:05Z</dc:date>
    <item>
      <title>i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Gold)</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83830#M37016</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I done activities&amp;nbsp; Bronze and Silver , after i trying to saving table to Gold&amp;nbsp; container but unable to storing .&lt;/P&gt;&lt;P&gt;i created External database .&lt;/P&gt;&lt;P&gt;I want store&amp;nbsp; data to PARQUET but not supporting ,only DELTA.&lt;/P&gt;&lt;P&gt;only&amp;nbsp; MANAGED LOCATION supporting but unable to&amp;nbsp; create directly&amp;nbsp; location .&lt;/P&gt;&lt;P&gt;can any one please&amp;nbsp; help me on urgent based&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 16:05:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83830#M37016</guid>
      <dc:creator>PraveenReddy21</dc:creator>
      <dc:date>2024-08-21T16:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Go</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83831#M37017</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113549"&gt;@PraveenReddy21&lt;/a&gt;&amp;nbsp; can you provide the ss what code you are using while saving it to parquet format and how you are doing to get the more understanding because generally it will not happen , i am sure you are having some issues with your flow .&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 16:19:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83831#M37017</guid>
      <dc:creator>Rishabh-Pandey</dc:creator>
      <dc:date>2024-08-21T16:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Go</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83833#M37018</link>
      <description>&lt;P&gt;hi , please find the&amp;nbsp; below&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE DATABASE IF NOT EXISTS sales_dbdb&lt;BR /&gt;MANAGED LOCATION 'abfss://unity-catalog-storage@dbstorage7wauw2kjcu3u6.dfs.core.windows.net/107512296614625'&lt;/P&gt;&lt;P&gt;and&lt;BR /&gt;create table sales_dbdb.country_wise_daily_salesale&lt;BR /&gt;using delta as&lt;BR /&gt;select country, invoice_date, round(sum(quantity*unit_price),2) as total_sales from invoice_tbl group by country, invoice_date&lt;/P&gt;&lt;P&gt;I want&amp;nbsp; create PARQUET format and transfer&amp;nbsp; table to BLOB-CONTAINER-GOLD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 16:44:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83833#M37018</guid>
      <dc:creator>PraveenReddy21</dc:creator>
      <dc:date>2024-08-21T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Go</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83835#M37020</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Rishabh,&lt;/P&gt;&lt;P&gt;First i tired&amp;nbsp; but not working&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;create&lt;/SPAN&gt; &lt;SPAN&gt;database&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;not&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt;&lt;SPAN&gt; sales_db&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;location&lt;/SPAN&gt; &lt;SPAN&gt;"/mnt/lakehouse/gold/sales_db"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Later&amp;nbsp; started&amp;nbsp; below&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;i am trying&amp;nbsp; to&amp;nbsp; create&amp;nbsp;&lt;/P&gt;&lt;P&gt;%sql&lt;BR /&gt;CREATE DATABASE IF NOT EXISTS sales_dbdb&lt;BR /&gt;LOCATION 'abfss://&amp;lt;storagelocation&amp;gt;.dfs.core.windows.net/&amp;lt;container&amp;gt;/sales_dbdb'&lt;/P&gt;&lt;P&gt;and&lt;BR /&gt;create table sales_dbdb.country_wise_daily_salesale&lt;BR /&gt;using PARQUEST as&lt;BR /&gt;select country, invoice_date, round(sum(quantity*unit_price),2) as total_sales from invoice_tbl group by country, invoice_date&lt;/P&gt;&lt;P&gt;not&amp;nbsp; working .&lt;/P&gt;&lt;P&gt;if have&amp;nbsp; steps&amp;nbsp; &amp;nbsp;please tell me .&lt;/P&gt;&lt;P&gt;Shall we&amp;nbsp; create Blob container database directly&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Thank You .&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 17:11:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83835#M37020</guid>
      <dc:creator>PraveenReddy21</dc:creator>
      <dc:date>2024-08-21T17:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Go</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83838#M37026</link>
      <description>&lt;P&gt;Why are you using&amp;nbsp;&lt;SPAN&gt;PARQUEST , can you replace it with parquet and let me know what error you are getting exactly .also what i understood from you is that you have done with the bronze and silver layer table now you want to create gold layer and gold table , so before moving out to the final conclusion i have some doubts .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1-Bronze and silver table are managed or external table ?&lt;/P&gt;&lt;P&gt;2-Bronze and silver table are delta table or parquet?&lt;/P&gt;&lt;P&gt;3-You want to create a external gold table in parquet format ?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 18:55:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83838#M37026</guid>
      <dc:creator>Rishabh-Pandey</dc:creator>
      <dc:date>2024-08-21T18:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Go</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83870#M37050</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am using&amp;nbsp;&lt;SPAN&gt;parquet&amp;nbsp;format&amp;nbsp; only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bronze and Silver&amp;nbsp; both&amp;nbsp; are&amp;nbsp;parquet&amp;nbsp; tables , its not&amp;nbsp; managed tables .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3-You want to create a external gold table in parquet format ?&amp;nbsp; yes&amp;nbsp; , i want&amp;nbsp; to&amp;nbsp; create&amp;nbsp; table&amp;nbsp; gold blob container.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 02:52:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83870#M37050</guid>
      <dc:creator>PraveenReddy21</dc:creator>
      <dc:date>2024-08-22T02:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Go</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83890#M37056</link>
      <description>&lt;LI-CODE lang="python"&gt;from pyspark.sql.functions import col, round, sum

# Step 1: Read the data from the source table
invoice_df = spark.table("invoice_tbl")

# Step 2: Perform the transformation
# Aggregate the data by country and invoice_date
aggregated_df = invoice_df.groupBy("country", "invoice_date") \
    .agg(round(sum(col("quantity") * col("unit_price")), 2).alias("total_sales"))

# Step 3: Write the result as a Parquet file
# Define the output path
parquet_path = "abfss://&amp;lt;container-name&amp;gt;@&amp;lt;storage-account-name&amp;gt;.blob.core.windows.net/path/to/gold/location/country_wise_daily_sales.parquet"

# Save the DataFrame to Parquet format
aggregated_df.write.format("parquet").mode("overwrite").save(parquet_path)

print("Table has been created and saved in Parquet format.")&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113549"&gt;@PraveenReddy21&lt;/a&gt;&amp;nbsp;Try with this , this code is to create the parquet external table for gold layer .&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 07:22:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83890#M37056</guid>
      <dc:creator>Rishabh-Pandey</dc:creator>
      <dc:date>2024-08-22T07:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: i created  External database  but unable to transferring  table to  Storage Acc(BLOBcontainer-Go</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83907#M37062</link>
      <description>&lt;P&gt;Thank You&amp;nbsp; Rishabh.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 10:14:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-external-database-but-unable-to-transferring-table-to/m-p/83907#M37062</guid>
      <dc:creator>PraveenReddy21</dc:creator>
      <dc:date>2024-08-22T10:14:05Z</dc:date>
    </item>
  </channel>
</rss>

