Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

Calcite 1003#14

Open
amoghmargoor wants to merge 5 commits intoqubole:masterfrom
amoghmargoor:CALCITE-1003
Open

Calcite 1003#14
amoghmargoor wants to merge 5 commits intoqubole:masterfrom
amoghmargoor:CALCITE-1003

Conversation

@amoghmargoor
Copy link

No description provided.

amoghmargoor added a commit to amoghmargoor/incubator-calcite that referenced this pull request Feb 19, 2016
amoghmargoor added a commit that referenced this pull request Feb 19, 2016
To support partial cubes we need filters to describe Lattice.
This would be used by RelOptRules during optimization.
amoghmargoor added a commit to amoghmargoor/incubator-calcite that referenced this pull request Feb 23, 2016
This commit consists of following 2 changes:
1. Previously only one lattice with relevant StarTable was registered.
   With this change any number of lattice that has possibility of
   optimizing a query gets registered.
2. Earlier a lattice could return a tile belonging to completetly
   different lattice. This has been fixed now.
amoghmargoor added a commit that referenced this pull request Feb 24, 2016
This commit consists of following 2 changes:
1. Previously only one lattice with relevant StarTable was registered.
   With this change any number of lattice that has possibility of
   optimizing a query gets registered.
2. Earlier a lattice could return a tile belonging to completetly
   different lattice. This has been fixed now.
amoghmargoor added a commit to amoghmargoor/incubator-calcite that referenced this pull request Mar 21, 2016
…ds-1.3

chg:usr:NEZ-32 Add Agg functions AVG, MIN, MAX to be used to define Measure

fix:dev:NEZ-41 Assign Dialect for POSTGRESQL to Redshift

chg:dev Adding setter for having clause in SqlSelect.

Add DEFAULT and VALUE to non reserved keywords

Setup for distributing to qubole maven

Add extension to release jars to S3

fix:usr:NEZ-85 Support LONGVCHAR in Avatica while executing query.

chg:dev:NEZ-100 Enable setting of Materialized Service instance as thread local

By default, Materialization Service returns new instance for different
threads. This change will enable differernt threads to override
this default behaviour and set the MS instance that they would like to
be returned.

new:usr:qubole#14 Add filter clauses to Lattice

To support partial cubes we need filters to describe Lattice.
This would be used by RelOptRules during optimization.

fix:usr:qubole#14 Support optimizing query using multiple cubes/lattices

This commit consists of following 2 changes:
1. Previously only one lattice with relevant StarTable was registered.
   With this change any number of lattice that has possibility of
   optimizing a query gets registered.
2. Earlier a lattice could return a tile belonging to completetly
   different lattice. This has been fixed now.

new:usr:qubole#17 Add DDL statements for Quark's DataSource

Added these 3 DDL statements for DataSource:
CREATE DATASOURCE - Create a datasource
ALTER DATASOURCE - Update a datasource
DROP DATASOURCE - Delete a datasource

chg: usr: apache#36: Add DDL Statement for Quark's View

Added these 3 DDL statements for View:
CREATE VIEW - Create a view
ALTER VIEW - Update a view
DROP VIEW - Delete a view
amoghmargoor added a commit to amoghmargoor/incubator-calcite that referenced this pull request Mar 25, 2016
Squashing following commits:

fix:usr:NEZ-36 Reverting change in RelOptMaterialization changes to qds-1.3

chg:usr:NEZ-32 Add Agg functions AVG, MIN, MAX to be used to define Measure

fix:dev:NEZ-41 Assign Dialect for POSTGRESQL to Redshift

chg:dev Adding setter for having clause in SqlSelect.

Add DEFAULT and VALUE to non reserved keywords

Setup for distributing to qubole maven

Add extension to release jars to S3

fix:usr:NEZ-85 Support LONGVCHAR in Avatica while executing query.

chg:dev:NEZ-100 Enable setting of Materialized Service instance as thread local

By default, Materialization Service returns new instance for different
threads. This change will enable differernt threads to override
this default behaviour and set the MS instance that they would like to
be returned.

new:usr:qubole#14 Add filter clauses to Lattice

To support partial cubes we need filters to describe Lattice.
This would be used by RelOptRules during optimization.

fix:usr:qubole#14 Support optimizing query using multiple cubes/lattices

This commit consists of following 2 changes:
1. Previously only one lattice with relevant StarTable was registered.
   With this change any number of lattice that has possibility of
   optimizing a query gets registered.
2. Earlier a lattice could return a tile belonging to completetly
   different lattice. This has been fixed now.

new:usr:qubole#17 Add DDL statements for Quark's DataSource

Added these 3 DDL statements for DataSource:
CREATE DATASOURCE - Create a datasource
ALTER DATASOURCE - Update a datasource
DROP DATASOURCE - Delete a datasource

chg: usr: apache#36: Add DDL Statement for Quark's View

Added these 3 DDL statements for View:
CREATE VIEW - Create a view
ALTER VIEW - Update a view
DROP VIEW - Delete a view

chg:dev Trivial changes to support use of Frameworks

Conflicts:
	core/src/main/java/org/apache/calcite/sql/SqlDialect.java

fix:usr:NEZ-62 Support Dialects that uses LIMIT instead of NEXT

CALCITE uses "NEXT .. ROWS" and "OFFSET .. ROWS" keyword instead of
LIMIT and OFFSET and those are not supported in Hive or Redshift.
This needs following changes:
1. NezhaRelToSqlConverter needs to handle EnumerableLimit.
2. We would need to change Calcite too to support LIMIT for some of the dialects instead of NEXT.
This submission addresses 2nd change.

Conflicts:
	core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableLimit.java
	core/src/main/java/org/apache/calcite/sql/SqlDialect.java
	core/src/main/java/org/apache/calcite/sql/SqlSelectOperator.java

Add SqlDialect for Quark
vrajat pushed a commit that referenced this pull request Jun 5, 2017
…s-1.5

Squashing following commits:

fix:usr:NEZ-36 Reverting change in RelOptMaterialization changes to qds-1.3

chg:usr:NEZ-32 Add Agg functions AVG, MIN, MAX to be used to define Measure

fix:dev:NEZ-41 Assign Dialect for POSTGRESQL to Redshift

chg:dev Adding setter for having clause in SqlSelect.

Add DEFAULT and VALUE to non reserved keywords

Setup for distributing to qubole maven

Add extension to release jars to S3

fix:usr:NEZ-85 Support LONGVCHAR in Avatica while executing query.

chg:dev:NEZ-100 Enable setting of Materialized Service instance as thread local

By default, Materialization Service returns new instance for different
threads. This change will enable differernt threads to override
this default behaviour and set the MS instance that they would like to
be returned.

new:usr:#14 Add filter clauses to Lattice

To support partial cubes we need filters to describe Lattice.
This would be used by RelOptRules during optimization.

fix:usr:#14 Support optimizing query using multiple cubes/lattices

This commit consists of following 2 changes:
1. Previously only one lattice with relevant StarTable was registered.
   With this change any number of lattice that has possibility of
   optimizing a query gets registered.
2. Earlier a lattice could return a tile belonging to completetly
   different lattice. This has been fixed now.

new:usr:#17 Add DDL statements for Quark's DataSource

Added these 3 DDL statements for DataSource:
CREATE DATASOURCE - Create a datasource
ALTER DATASOURCE - Update a datasource
DROP DATASOURCE - Delete a datasource

chg: usr: apache#36: Add DDL Statement for Quark's View

Added these 3 DDL statements for View:
CREATE VIEW - Create a view
ALTER VIEW - Update a view
DROP VIEW - Delete a view

chg:dev Trivial changes to support use of Frameworks

Conflicts:
	core/src/main/java/org/apache/calcite/sql/SqlDialect.java

fix:usr:NEZ-62 Support Dialects that uses LIMIT instead of NEXT

CALCITE uses "NEXT .. ROWS" and "OFFSET .. ROWS" keyword instead of
LIMIT and OFFSET and those are not supported in Hive or Redshift.
This needs following changes:
1. NezhaRelToSqlConverter needs to handle EnumerableLimit.
2. We would need to change Calcite too to support LIMIT for some of the dialects instead of NEXT.
This submission addresses 2nd change.

Conflicts:
	core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableLimit.java
	core/src/main/java/org/apache/calcite/sql/SqlDialect.java
	core/src/main/java/org/apache/calcite/sql/SqlSelectOperator.java

Add SqlDialect for Quark
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant