<?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 Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28366#M20186</link>
    <description>&lt;P&gt;If&amp;nbsp;we use two different clusters one for pyspark code for transformation and one for SQL analytics . how to make permenant tables derived from pyspark code make available for running queries in databricks   SQL analytics &lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 04:43:11 GMT</pubDate>
    <dc:creator>BasavarajAngadi</dc:creator>
    <dc:date>2022-02-14T04:43:11Z</dc:date>
    <item>
      <title>Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ?</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28366#M20186</link>
      <description>&lt;P&gt;If&amp;nbsp;we use two different clusters one for pyspark code for transformation and one for SQL analytics . how to make permenant tables derived from pyspark code make available for running queries in databricks   SQL analytics &lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 04:43:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28366#M20186</guid>
      <dc:creator>BasavarajAngadi</dc:creator>
      <dc:date>2022-02-14T04:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ?</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28367#M20187</link>
      <description>&lt;P&gt;You can write your ETL logic in notebooks, run the notebook over a cluster and write the data to a location where your S3 bucket is mounted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, you can register that table with Hive MetaStore and access the same table in Databricks SQL.&lt;/P&gt;&lt;P&gt;To see the table, go to Data tab and select your schema/database to see registered tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two ways to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.option("path",&amp;lt;s3-path-of-table&amp;gt;).saveAsTable(tableName)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Option 2&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%python
df.write.save(&amp;lt;s3-path-of-table&amp;gt;)
&amp;nbsp;
%sql
CREATE TABLE &amp;lt;table-name&amp;gt;
USING DELTA
LOCATION &amp;lt;s3-path-of-table&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;:&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 06:24:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28367#M20187</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2022-02-14T06:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ?</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28368#M20188</link>
      <description>&lt;P&gt;@Aman Sehgal​&amp;nbsp; so basically you are telling to write the transformed data from Databricks pyspark  into ADLS gen2 and then use Data bricks SQL analytics to do below what you said ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;%sql&lt;/LI&gt;&lt;LI&gt;CREATE TABLE &amp;lt;table-name&amp;gt;&lt;/LI&gt;&lt;LI&gt;USING DELTA&lt;/LI&gt;&lt;LI&gt;LOCATION &amp;lt;s3-path-of-table&amp;gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 11:05:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28368#M20188</guid>
      <dc:creator>BasavarajAngadi</dc:creator>
      <dc:date>2022-02-14T11:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ?</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28369#M20189</link>
      <description>&lt;P&gt;Right.. Databricks is a platform to perform transformations.. Ideally your should either mount s3 bucket or ADLS gen 2 location in DBFS.. &lt;/P&gt;&lt;P&gt;Read/Write/Update/Delete your data and to run SQL analytics from SQL tab, you'll have to register a  table and start an endpoint..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also query the data via notebooks by using SQL in  a cell. The only difference is, you'll have to spin up a cluster instead of an endpoint.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 13:11:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28369#M20189</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2022-02-14T13:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ?</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28370#M20190</link>
      <description>&lt;P&gt;@Aman Sehgal​&amp;nbsp; you are making me confused ....we need to spin up the cluster if we use SQL end point right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  Can we not use magic  commands "%Sql" within same notebook    to write the pyspark data to SQL end point as table  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:09:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28370#M20190</guid>
      <dc:creator>BasavarajAngadi</dc:creator>
      <dc:date>2022-02-15T09:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ?</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28371#M20191</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2022-02-16 at 12.54.55 am"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2092i00E18ACC461771F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-02-16 at 12.54.55 am" alt="Screen Shot 2022-02-16 at 12.54.55 am" /&gt;&lt;/span&gt;﻿When you're in Data Engineering tab in workspace, then you need to spin up a cluster. After spinning up the cluster, you can create a notebook and use %sql to write SQL command and query your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you're in SQL tab in workspace, then you need to spin up a SQL Endpoint. After spinning an end point, go to Queries tab and you can write a SQL query to query your tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2022-02-16 at 12.54.37 am"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2090iE0EF9080763F3292/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-02-16 at 12.54.37 am" alt="Screen Shot 2022-02-16 at 12.54.37 am" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 13:58:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28371#M20191</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2022-02-15T13:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ?</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28372#M20192</link>
      <description>&lt;P&gt;@Aman Sehgal​&amp;nbsp; Can we write data from data engineering workspace to SQL end point in databricks?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 16:03:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28372#M20192</guid>
      <dc:creator>BasavarajAngadi</dc:creator>
      <dc:date>2022-02-18T16:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Experts , 
I am new to databricks.
I want to know how to copy pyspark data into databricks SQL analytics ?</title>
      <link>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28373#M20193</link>
      <description>&lt;P&gt;You can write data to a table (eg. default.my_table) and consume data from same table using SQL end point.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 23:39:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hi-experts-i-am-new-to-databricks-i-want-to-know-how-to-copy/m-p/28373#M20193</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2022-02-19T23:39:39Z</dc:date>
    </item>
  </channel>
</rss>

