Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 9
Next »
- 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
drv ← JDBC(driverClass = "org.apache.drill.jdbc.Driver", classPath = pathDriverDrill)
|
drillConnectionURL ← "jdbc:drill:drillbit=IP_Drill:Port_Drill"
conn ← dbConnect(drv, "drillConnectionURL")
|
BDD_Name ← "cp"
Table_Name ← "`employee.json`"
dbReadTable(conn, paste(BDD_Name, ".", Table_Name, sep="")
|
Count the number of rows (in table)
dbGetQuery(conn, paste("SELECT COUNT(*) FROM ", BDD_Name, ".", Table_Name, sep=""))
|