Suppose that id1
identifies a table in a SQL database and that
[i, j, by]
describes a subset/select/summarize operation using
data.table
syntax. The Reference Implementation for this
operation is:
setDT(dbReadTable(conn, id1))[i, j, by]
More generally, for an expression involving multiple SQL database objects
and using data.table
syntax, the Reference Implementation
would be to download each of these objects in their entirety, convert them
to data.table
s, then evaluate the expression.
The goal of the dbi.table is to generate an SQL query that produces
the same results set as the Reference Implementation up to row ordering.