DRILL-55: RSERegistry correctly store built engines
bugfix for JoinROP
test for JoinROP
fix for JoinROP testcase

Signed-off-by: Jacques Nadeau <jacques@apache.org>
- Add queue feature to support encoding as UnbackedRecord rather than JSON encoded byte arrays.
- Add additional tool to TestUtils to get a set of unbacked records from example logical plan
- Fix for DRILL-61: Correcting the offset of the carryover values
- Add test for DRILL-61 bug
- Fix for DRILL-66: Add support for nullCollation: <first | last>
- Add tests for DRILL-66 functionality
Fixing outer join and add test cases
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
Fix bug where handlers would get prematurely removed before all streams completed.  Updated tests to validate execution of single bit multi-fragment and two bit multi-fragment queries.