<?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 run SQL queries from services when data migrated from SQL server to data lake? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23782#M16486</link>
    <description>&lt;P&gt;Currently our service provides an API to serve the purchase records. The purchase records are stored in SQL database. To simplify, when users want to get their recent purchase records, they make an API call. The API call will run a SQL query on the DB and return recent records to callers.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Recently the purchase records data are migrated to Data Lake and can access through Azure Databricks. I go through the tutorial of Azure Databricks and can run some SQL queries on a cluster to retrieve those recent purchase records, but that seems more of a batch processing manner. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Now I am migrating our service to use data lake as a data storage. What is a good practice to support the scenario, where users trigger an API call &lt;B&gt;to run a SQL query and get the recent records immediately&lt;/B&gt;? Would a Databricks SQL warehouse suitable for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 04:11:54 GMT</pubDate>
    <dc:creator>StanleyTang</dc:creator>
    <dc:date>2022-11-04T04:11:54Z</dc:date>
    <item>
      <title>How to run SQL queries from services when data migrated from SQL server to data lake?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23782#M16486</link>
      <description>&lt;P&gt;Currently our service provides an API to serve the purchase records. The purchase records are stored in SQL database. To simplify, when users want to get their recent purchase records, they make an API call. The API call will run a SQL query on the DB and return recent records to callers.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Recently the purchase records data are migrated to Data Lake and can access through Azure Databricks. I go through the tutorial of Azure Databricks and can run some SQL queries on a cluster to retrieve those recent purchase records, but that seems more of a batch processing manner. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Now I am migrating our service to use data lake as a data storage. What is a good practice to support the scenario, where users trigger an API call &lt;B&gt;to run a SQL query and get the recent records immediately&lt;/B&gt;? Would a Databricks SQL warehouse suitable for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 04:11:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23782#M16486</guid>
      <dc:creator>StanleyTang</dc:creator>
      <dc:date>2022-11-04T04:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SQL queries from services when data migrated from SQL server to data lake?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23784#M16488</link>
      <description>&lt;P&gt;Hi @Debayan Mukherjee​, I investigated the documents. It seems that SQL Warehouses API is used to configure and manage the SQL Warehouse. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, our demand is we can setup a place has similar behavior like SQL server, where we can run SQL queries and get data immediately through calling API. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I maintain some queries, e.g. &lt;I&gt;QueryRecent10Records&lt;/I&gt;. and I would like to get the result for &lt;I&gt;QueryRecent10Records &lt;/I&gt;through sending API request from our service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if I misunderstand.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 06:59:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23784#M16488</guid>
      <dc:creator>StanleyTang</dc:creator>
      <dc:date>2022-11-04T06:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SQL queries from services when data migrated from SQL server to data lake?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23783#M16487</link>
      <description>&lt;P&gt;Hi @Stanley Tang​&amp;nbsp;, There are several rest API resources managed by Databricks. You can refer &lt;A href="https://docs.databricks.com/dev-tools/api/latest/index.html" alt="https://docs.databricks.com/dev-tools/api/latest/index.html" target="_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/index.html&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;In this scenario, SQL Warehouses API can be used: &lt;A href="https://docs.databricks.com/sql/api/sql-endpoints.html" alt="https://docs.databricks.com/sql/api/sql-endpoints.html" target="_blank"&gt;https://docs.databricks.com/sql/api/sql-endpoints.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 05:01:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23783#M16487</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-11-04T05:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to run SQL queries from services when data migrated from SQL server to data lake?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23785#M16489</link>
      <description>&lt;P&gt;Hi @Stanley Tang​&amp;nbsp;, for this we have query API : &lt;A href="https://docs.databricks.com/sql/api/queries-dashboards.html" alt="https://docs.databricks.com/sql/api/queries-dashboards.html" target="_blank"&gt;https://docs.databricks.com/sql/api/queries-dashboards.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, you can go through the variety of APIs databricks has:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/api/latest/index.html" alt="https://docs.databricks.com/dev-tools/api/latest/index.html" target="_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 06:54:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-run-sql-queries-from-services-when-data-migrated-from-sql/m-p/23785#M16489</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-11-09T06:54:06Z</dc:date>
    </item>
  </channel>
</rss>

