Skip to content

Commit f68c0a2

Browse files
committed
Update README.md
1 parent dd58bc6 commit f68c0a2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,30 @@ It will show you a waiting screen and, if everything works fine, the results.
142142

143143
Now, head over to the [Drill Documentation](https://drill.apache.org/docs/query-data/) and start learning how to use Drill.
144144

145+
## Connect to the Drill container with a SQL tool
146+
Let's connect [Data Grip](http://www.jetbrains.com/datagrip) to the Drill container.
147+
148+
1. Create a new Driver in Data Grip by pointing towards the JDBC driver for Apache Drill in the `/build` folder.
149+
150+
![Data Grip Driver](https://github.com/mschermann/docker_apache_drill_datagrip/blob/master/assets/data_grip_drill_driver.png)
151+
152+
2. Create a data source using the Drill driver. Test the connection and make sure you get the green checkmark.
153+
154+
![Data Grip Datasource](https://github.com/mschermann/docker_apache_drill_datagrip/blob/master/assets/data_grip_drill_connection.png)
155+
156+
3. Run a Sample Query
157+
158+
Using the same query as above (`SELECT * FROM cp.`employee.json` LIMIT 20`), you should see the following output.
159+
160+
![Data Grip Sample Query](https://github.com/mschermann/docker_apache_drill_datagrip/blob/master/assets/data_grip_sample_query.png)
161+
162+
At this point you are all set. Add your data files to the `/data` folder and you should be able to query them.
163+
164+
If you use parquet data files, the following command will give you the five rows of the data.
165+
```
166+
SELECT * FROM dfs.`/data` LIMIT 5;
167+
```
168+
145169
## Access the Drill container
146170

147171
If you want to access the Drill container.

0 commit comments

Comments
 (0)