techdocsmith commented on code in PR #13565: URL: https://github.com/apache/druid/pull/13565#discussion_r1087144777
########## docs/tutorials/tutorial-sql-query-view.md: ########## @@ -0,0 +1,195 @@ +--- +id: tutorial-sql-query-view +title: "Tutorial: Use Query view" +sidebar_label: "Use Query view" +--- + +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + + +This tutorial demonstrates some useful features built into Query view in Apache Druid. + +Query view lets you run [Druid SQL queries](../querying/sql.md) and [native (JSON-based) queries](../querying/querying.md) against ingested data. Try out the [Introduction to Druid SQL](./tutorial-jupyter-index.md#tutorials) tutorial to learn more about Druid SQL. + +You can use Query view to test and tune queries before you use them in API requests—for example, to perform [SQL-based ingestion](../multi-stage-query/api.md). You can also ingest data directly in Query view. + +The tutorial guides you through the steps to ingest sample data and query the ingested data using some Query view features. + +## Prerequisites + +Before you follow the steps in this tutorial, download Druid as described in the [quickstart](./index.md) and have it running on your local machine. You don't need to have loaded any data. + +## Run a demo query to ingest data + +Druid includes demo queries that each demonstrate a different Druid feature—for example transforming data during ingestion and sorting ingested data. Each query has detailed comments to help you learn more. + +In this section you load the demo queries and run a SQL task to ingest sample data into a [table-type datasource](../querying/datasource.md#table). Review Comment: ```suggestion In this section you load the demo queries and run a SQL task to ingest sample data into a [table datasource](../querying/datasource.md#table). ``` nit `type` is unnecessary here -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
