<?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 How to perform Inner join using withcolumn in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10467#M5640</link>
    <description />
    <pubDate>Mon, 30 Jan 2023 18:33:47 GMT</pubDate>
    <dc:creator>pramalin</dc:creator>
    <dc:date>2023-01-30T18:33:47Z</dc:date>
    <item>
      <title>How to perform Inner join using withcolumn</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10467#M5640</link>
      <description />
      <pubDate>Mon, 30 Jan 2023 18:33:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10467#M5640</guid>
      <dc:creator>pramalin</dc:creator>
      <dc:date>2023-01-30T18:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Inner join using withcolumn</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10468#M5641</link>
      <description>&lt;P&gt;@prudhvi ramalingam​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is example: &lt;A href="https://stackoverflow.com/a/61029482" alt="https://stackoverflow.com/a/61029482" target="_blank"&gt;https://stackoverflow.com/a/61029482&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 07:59:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10468#M5641</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-01-31T07:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Inner join using withcolumn</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10469#M5642</link>
      <description>&lt;P&gt;@prudhvi ramalingam​&amp;nbsp;you could refer to this link: &lt;A href="https://sparkbyexamples.com/spark/spark-sql-join-on-multiple-columns/" target="test_blank"&gt;https://sparkbyexamples.com/spark/spark-sql-join-on-multiple-columns/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 13:19:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10469#M5642</guid>
      <dc:creator>Nhan_Nguyen</dc:creator>
      <dc:date>2023-01-31T13:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Inner join using withcolumn</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10470#M5643</link>
      <description>&lt;P&gt;@prudhvi ramalingam​&amp;nbsp;- Please refer to the below example code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import org.apache.spark.sql.functions.expr
val person = Seq(
    (0, "Bill Chambers", 0, Seq(100)),
    (1, "Matei Zaharia", 1, Seq(500, 250, 100)),
    (2, "Michael Armbrust", 1, Seq(250, 100)))
  .toDF("id", "name", "graduate_program", "spark_status")
&amp;nbsp;
val graduateProgram = Seq(
    (0, "Masters", "School of Information", "UC Berkeley"),
    (2, "Masters", "EECS", "UC Berkeley"),
    (1, "Ph.D.", "EECS", "UC Berkeley"))
  .toDF("id", "degree", "department", "school")
&amp;nbsp;
val sparkStatus = Seq(
    (500, "Vice President"),
    (250, "PMC Member"),
    (100, "Contributor"))
  .toDF("id", "status")
&amp;nbsp;
person
  .withColumnRenamed("id", "personId")
  .join(sparkStatus, expr("array_contains(spark_status, id)"))
  .show()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 15:55:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-perform-inner-join-using-withcolumn/m-p/10470#M5643</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2023-01-31T15:55:15Z</dc:date>
    </item>
  </channel>
</rss>

