<?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 Spark Sql Execution Plan in Data &amp; Schema Discussions</title>
    <link>https://community.incorta.com/t5/data-schema-discussions/spark-sql-execution-plan/m-p/5245#M418</link>
    <description>&lt;P&gt;Is there any way to get the Spark execution plan in an MV when selecting Spark SQL? I know I can take the below approach, but I prefer to do this in Spark SQL and not have to rebuild the Spark SQL queries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%pyspark&lt;/P&gt;&lt;P&gt;df = read("EBS_PARTY_COMMON.HZ_PARTIES")&lt;BR /&gt;df.registerTempTable("TBL")&lt;BR /&gt;spark.sql("""&lt;BR /&gt;SELECT count(*)&lt;BR /&gt;FROM TBL&lt;BR /&gt;""").explain(mode="formatted")&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 16:05:20 GMT</pubDate>
    <dc:creator>JC_Data_Wizard</dc:creator>
    <dc:date>2023-11-07T16:05:20Z</dc:date>
    <item>
      <title>Spark Sql Execution Plan</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/spark-sql-execution-plan/m-p/5245#M418</link>
      <description>&lt;P&gt;Is there any way to get the Spark execution plan in an MV when selecting Spark SQL? I know I can take the below approach, but I prefer to do this in Spark SQL and not have to rebuild the Spark SQL queries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%pyspark&lt;/P&gt;&lt;P&gt;df = read("EBS_PARTY_COMMON.HZ_PARTIES")&lt;BR /&gt;df.registerTempTable("TBL")&lt;BR /&gt;spark.sql("""&lt;BR /&gt;SELECT count(*)&lt;BR /&gt;FROM TBL&lt;BR /&gt;""").explain(mode="formatted")&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 16:05:20 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/spark-sql-execution-plan/m-p/5245#M418</guid>
      <dc:creator>JC_Data_Wizard</dc:creator>
      <dc:date>2023-11-07T16:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Sql Execution Plan</title>
      <link>https://community.incorta.com/t5/data-schema-discussions/spark-sql-execution-plan/m-p/5271#M422</link>
      <description>&lt;P&gt;&amp;lt;IncortaCluster&amp;gt;/applications will get you to the SPARK screen which is full of drillable links and contains all kinds of information including ( I think ) the explain plan if you drill far enough.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 21:10:35 GMT</pubDate>
      <guid>https://community.incorta.com/t5/data-schema-discussions/spark-sql-execution-plan/m-p/5271#M422</guid>
      <dc:creator>RADSr</dc:creator>
      <dc:date>2023-11-13T21:10:35Z</dc:date>
    </item>
  </channel>
</rss>

