Tests that project and filter based on nested fields (upgrades to Optiq 0.2 for map and late-binding functionality).

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Use Optiq's new "model" connect-string parameter to pass in a JSON model for the DONUTS schema. It just contains one table with one column. (Now we can remove hackery in the driver doing a similar thing.)

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Factor JDBC test infrastructure into a fluent API, JdbcAssert.

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Add a test that a SQL query generates a particular logical plan.

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Add Drill implementations of Project and Filter relational operators.

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Allow inline strings, as well as files, in ReferenceInterpreter.

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Fix issues with holder elements. All tests in JdbcTest now pass (albeit with some cheating).

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Partial implementation of SQL VALUES operator.

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Upgrade to latest optiq.

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Add "--stdout" option to ReferenceInterpreter.main, that allows execution of plans that write to stdout (via a queue) rather than a file.

Signed-off-by: Jacques Nadeau <jacques@apache.org>
As far as Optiq is concerned, each Drill table has a single field called "_MAP". The JSON output from the table is consistent with that. This let me get rid of a load of "holder" rubbish.

Signed-off-by: Jacques Nadeau <jacques@apache.org>
Upgrade to optiq-0.4.2. Add sqllline and an optiq model for the donuts schema.

Signed-off-by: Jacques Nadeau <jacques@apache.org>