<?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 Query API Result in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11591#M6539</link>
    <description>&lt;P&gt;Hi, I'm new here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have to read information from a query in databricks. I've used the query API to get the query definition but so far I'm not able to run the query and get the &lt;I&gt;results&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 12:58:56 GMT</pubDate>
    <dc:creator>lenonlmsv</dc:creator>
    <dc:date>2023-01-17T12:58:56Z</dc:date>
    <item>
      <title>Query API Result</title>
      <link>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11591#M6539</link>
      <description>&lt;P&gt;Hi, I'm new here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have to read information from a query in databricks. I've used the query API to get the query definition but so far I'm not able to run the query and get the &lt;I&gt;results&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 12:58:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11591#M6539</guid>
      <dc:creator>lenonlmsv</dc:creator>
      <dc:date>2023-01-17T12:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query API Result</title>
      <link>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11592#M6540</link>
      <description>&lt;P&gt;When using the JobsAPI you need to specify dbutils.notebook.exit("returnValue") to pass the results once the notebook finished it's job (https://docs.databricks.com/notebooks/notebook-workflows.html#notebook-workflows-exit).&lt;/P&gt;&lt;P&gt;Then you can get notebook_output.result through the API (https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsRunsGetOutput)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:12:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11592#M6540</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-01-17T13:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query API Result</title>
      <link>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11593#M6541</link>
      <description>&lt;P&gt;I'm actually using the '/2.0/preview/sql' endpoint. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use this one in the past but seems that the return has a limitation. Should I switch to the jobs API?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:27:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11593#M6541</guid>
      <dc:creator>lenonlmsv</dc:creator>
      <dc:date>2023-01-17T13:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query API Result</title>
      <link>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11594#M6542</link>
      <description>&lt;P&gt;It depends on what you're trying to do.&lt;/P&gt;&lt;P&gt;If you want to simply get a single value (or array of values) from the query - then jobsAPI is the way to go.&lt;/P&gt;&lt;P&gt;If you want to get the actualy query results as a table, then the best approach would be to save the results as a file on a storage.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:58:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-api-result/m-p/11594#M6542</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-01-17T13:58:49Z</dc:date>
    </item>
  </channel>
</rss>

