<?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 Cancel SQL statement using ODBC driver in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/cancel-sql-statement-using-odbc-driver/m-p/50642#M1032</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm implementing a Databricks connector using the &lt;A href="https://www.databricks.com/spark/odbc-drivers-download" target="_blank" rel="noopener"&gt;ODBC driver&lt;/A&gt; and currently working on the functionality to &lt;EM&gt;Cancel an ongoing SQL statement&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;However, I can't seem to find any ODBC function or SQL function to do so.&lt;/P&gt;&lt;P&gt;The only other alternative I see is to use &lt;A href="https://docs.databricks.com/api/workspace/statementexecution/cancelexecution" target="_blank" rel="noopener"&gt;this API&lt;/A&gt;, but then I could not find any easy/efficient way to get the Statement ID from the ODBC execution. It is technically possible to use the &lt;A href="https://docs.databricks.com/api/workspace/queryhistory/list" target="_blank" rel="noopener"&gt;Query History API&lt;/A&gt; and browse for the target statement, but I cannot filter by SQL, making it quite inefficient.&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Is there a plan to support any of these features?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;ODBC/SQL function to cancel a SQL statement&lt;/LI&gt;&lt;LI&gt;Ability to filter &lt;A href="https://docs.databricks.com/api/workspace/queryhistory/list" target="_blank" rel="noopener"&gt;Query History API&lt;/A&gt; by SQL text (so that I can inject an ID into the SQL statements and efficiently query them)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for looking into this.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 12:40:54 GMT</pubDate>
    <dc:creator>Datbth</dc:creator>
    <dc:date>2023-11-08T12:40:54Z</dc:date>
    <item>
      <title>Cancel SQL statement using ODBC driver</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/cancel-sql-statement-using-odbc-driver/m-p/50642#M1032</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm implementing a Databricks connector using the &lt;A href="https://www.databricks.com/spark/odbc-drivers-download" target="_blank" rel="noopener"&gt;ODBC driver&lt;/A&gt; and currently working on the functionality to &lt;EM&gt;Cancel an ongoing SQL statement&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;However, I can't seem to find any ODBC function or SQL function to do so.&lt;/P&gt;&lt;P&gt;The only other alternative I see is to use &lt;A href="https://docs.databricks.com/api/workspace/statementexecution/cancelexecution" target="_blank" rel="noopener"&gt;this API&lt;/A&gt;, but then I could not find any easy/efficient way to get the Statement ID from the ODBC execution. It is technically possible to use the &lt;A href="https://docs.databricks.com/api/workspace/queryhistory/list" target="_blank" rel="noopener"&gt;Query History API&lt;/A&gt; and browse for the target statement, but I cannot filter by SQL, making it quite inefficient.&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Is there a plan to support any of these features?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;ODBC/SQL function to cancel a SQL statement&lt;/LI&gt;&lt;LI&gt;Ability to filter &lt;A href="https://docs.databricks.com/api/workspace/queryhistory/list" target="_blank" rel="noopener"&gt;Query History API&lt;/A&gt; by SQL text (so that I can inject an ID into the SQL statements and efficiently query them)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for looking into this.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 12:40:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/cancel-sql-statement-using-odbc-driver/m-p/50642#M1032</guid>
      <dc:creator>Datbth</dc:creator>
      <dc:date>2023-11-08T12:40:54Z</dc:date>
    </item>
  </channel>
</rss>

