<?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: Issue with Multi-column In predicates are not supported in the DELETE condition. in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/98789#M3785</link>
    <description>&lt;P&gt;I have an error in my query here where i am using tenant_id and :tenantId, this error does not exist in my actual code.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 11:38:17 GMT</pubDate>
    <dc:creator>thisisthemurph</dc:creator>
    <dc:date>2024-11-14T11:38:17Z</dc:date>
    <item>
      <title>Issue with Multi-column In predicates are not supported in the DELETE condition.</title>
      <link>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/20894#M1145</link>
      <description>&lt;P&gt;I'm trying to delete rows from a table with the same date or id as records in another table. I'm using the below query and get the error 'Multi-column In predicates are not supported in the DELETE condition'. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;delete from cost_model.cm_dispatch_consolidated
&amp;nbsp;
where delivery_date in (select delivery_date from cost_model.cm_dispatch_stats)
    or order_nbr in (select order_nbr from cost_model.cm_dispatch_stats)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What's strange is I do this against another table with no issues. Below is the one that is running fine.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;delete from cost_model.cm_order_consolidated 
&amp;nbsp;
where delivery_date in (select delivery_date from cost_model.cm_order_stats)
    or order_nbr in (select order_nbr from cost_model.cm_order_stats)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 20:43:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/20894#M1145</guid>
      <dc:creator>cmilligan</dc:creator>
      <dc:date>2022-11-23T20:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-column In predicates are not supported in the DELETE condition.</title>
      <link>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/20895#M1146</link>
      <description>&lt;P&gt;strange error message as it is supported, as you already noticed.&lt;/P&gt;&lt;P&gt;I'd check what the subqueries return, my guess is that the issue might be there.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 10:12:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/20895#M1146</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-11-24T10:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-column In predicates are not supported in the DELETE condition.</title>
      <link>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/20896#M1147</link>
      <description>&lt;P&gt;It might be because of nulls in the column you are defining. Can you please check if you have nulls in the working table and in the non working table and get back ?&lt;/P&gt;&lt;P&gt;Cheers..&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2022 08:54:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/20896#M1147</guid>
      <dc:creator>UmaMahesh1</dc:creator>
      <dc:date>2022-12-03T08:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-column In predicates are not supported in the DELETE condition.</title>
      <link>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/66424#M3201</link>
      <description>&lt;P&gt;Had the same issue. Please check the subquery returned value there must be something wrong with that.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 11:05:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/66424#M3201</guid>
      <dc:creator>shubhaskar</dc:creator>
      <dc:date>2024-04-17T11:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-column In predicates are not supported in the DELETE condition.</title>
      <link>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/98787#M3784</link>
      <description>&lt;P&gt;I seem to get this error on some DeltaTables and not others:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df.createOrReplaceTempView("channels_to_delete")

spark.sql("""
    delete from lake.something.earnings
    where TenantId = :tenantId
    and ChannelId = in (
        select ChannelId
        from channels_to_delete
    )
    """,
    args=dict(tenant_id="some_id")
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Nov 2024 11:35:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/98787#M3784</guid>
      <dc:creator>thisisthemurph</dc:creator>
      <dc:date>2024-11-14T11:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-column In predicates are not supported in the DELETE condition.</title>
      <link>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/98789#M3785</link>
      <description>&lt;P&gt;I have an error in my query here where i am using tenant_id and :tenantId, this error does not exist in my actual code.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 11:38:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issue-with-multi-column-in-predicates-are-not-supported-in-the/m-p/98789#M3785</guid>
      <dc:creator>thisisthemurph</dc:creator>
      <dc:date>2024-11-14T11:38:17Z</dc:date>
    </item>
  </channel>
</rss>

