R - Query from Drill
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)
|