Github project : example-R-Query-From-Drill
Dependencies
R package
RJDBC : https://cran.r-project.org/web/packages/RJDBC/index.html
This allows R to connect to any DBMS that has a JDBC driver.
Drill JDBC drivers
Download the Drill JDBC drivers : https://drill.apache.org/docs/using-the-jdbc-driver/
Parameters
- pathDriverDrill : The path where is the driver drill
- IP_Drill : Internet protocol Drill
- Port_Drill : Port of Drill
- Table_Name : Name of Table
- BDD_Name : Name of BDD
Code explanation for querying Drill
Loading JDBC driver
|
|
Connection
|
Query
Show Tables
|
Read Table
|
Count the number of rows (in table)
|