Fix for DRILL-65.  Simple tests for distinct and non-distinct union.  To make things simple, just treated all unions as blocking.
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>
Merge branch 'master' into execwork

Conflicts:
	sandbox/prototype/common/src/main/java/org/apache/drill/common/logical/data/Order.java
	sandbox/prototype/exec/ref/src/main/java/org/apache/drill/exec/ref/rops/OrderROP.java
	sandbox/prototype/exec/ref/src/main/java/org/apache/drill/exec/ref/rse/QueueRSE.java
	sandbox/prototype/sqlparser/src/main/java/org/apache/drill/jdbc/Driver.java
	sandbox/prototype/sqlparser/src/main/java/org/apache/drill/optiq/DrillScan.java
Add JsonRecordReader
Removing unused classes and Field type. Also testing floats. Fixed jmockit pom scope.