Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source column #1195

Closed
wants to merge 16 commits into from
Closed

Source column #1195

wants to merge 16 commits into from

Conversation

hellohanchen
Copy link
Contributor

Resolves #1005

Description

  • Add sourceColumn field into Column model.
  • QueryEngine would call MetaDataStore to resolve source columns.

How Has This Been Tested?

Metadata integration test is updated.

License

I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

QubitPi and others added 16 commits February 17, 2020 11:04
* Create AggregationDataStore module

* Address Aaron's comments

* Fix build failure

AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

Define QueryEngine Contract (yahoo#867)

Fixed rebase on master

SQL Query Engine  (yahoo#878)

* AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

Added calcite as a dependency.  Merged in changes for QueryEngine interface

Fixed checkstyle issues

Added basic H2 DB test harness

Started breaking out projections

Moved getValue and setValue from PersistentResource to EntityDictionary

Added basic logic to hydrate entities

Added FromTable and FromSubquery annotations.  Add explicit exclusion of entity relationship hydration

Minor cleanup

Refactored HQLFilterOperation to take an alias generator

Added test support for RSQL filter generation. Some cleanup

Added basic support for WHERE clause filtering on the fact table

Added working test for subquery SQL

Added basic join logic for filters

Added a test with a subquery and a filter join

Refactored Schema classes and Query to support metric aggregation SQL expansion

Added group by support

Added logic for ID generation

Added sorting logic and test

Added pagination support and testing

All column references use proper name now for SQL

Removed calcite as a query engine

Refactored HQLFilterOperation so it can be used for Having and Where clause generaiton

Added HAVING clause support

Changed Query to take schema instead of entityClass

First pass at cleanup

Fixed checkstyles

Cleanup

Cleanup

Added a complex SQL expression test and fixed bugs

Fixed merge issues.  Added another test.  Added better logging

Fixed bug in pagination SQL generation

* Build is working

* Inspection rework

Add EntityProjection plumbing (yahoo#949)

* AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

* Initial sketch

PersistentResourceTest now passes

LifeCycleTest tests now pass

More API changes for data store transaction.  Also fixed createObject in persistent resource to take the correct projection

Started to refactor tests

IncludedProcessorTest refactored

Refactored LifeCycleTest

Started refactor on PersistentResourceTest

More refactoring.  Fixed a bug in Resource.toPersistentResource

Only one test failing in PersistentResourceTest

PersistentResourceTests now pass

UpdateOnCreateTests now pass

Added skeleton for translating JSON-API URL path into an EntityProjection

Basic EntityProjectionMaker almost complete

Added ability to merge entity projections by relationship

Added first test for EntityProjectionMaker

Non-working veresion (but clean)

Tests now pass

All EntityProjectioNMaker tests pass

Elide-Core now builds

Added handling of sparse attributes and relationships

Expanding attributes for included entities

Fixed a number of bugs found in IT tests

Fixed some of the EntityProjectionMaker tests

Fixed unit tests

Made temporary modifications to exclude GraphQL (Build now passes)

Added sparse field unit tests for EntityProjectionMaker

* Fixed build issues after rebase

* Removed duplicated Schema class from rebase

* Entity projection with aliases (yahoo#963)

* Hacked up PersistentResource with new design

* Core now compiles (and tests can run

* EntityProjectionMaker tests pass

* Build now passes (major cleanup still needed

* Wire in entity projection4 json api (yahoo#964)

* Fixed DataStore API.  Fixed a lot of the core unit tests

* Checkstyles and more fixes

* Hibernate 5 Tests Pass

* Full build passes

* Wire in entity projection4 json api (yahoo#965)

* Initial concept.  No testing changed.

* Core compiles and EntityProjectionMaker tests (original ones) now pass

* Minor edits to TestRequestScope

* Full build passes now

* removed entity dictionary from entity projection

* Pre-inspection cleanup

* minor inspection fixup

Hydrate Relationship (yahoo#987)

* AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

* Added basic H2 DB test harness

* Started breaking out projections

* Moved getValue and setValue from PersistentResource to EntityDictionary

* Added basic logic to hydrate entities

* Added FromTable and FromSubquery annotations.  Add explicit exclusion of entity relationship hydration

* Refactored HQLFilterOperation to take an alias generator

* Added test support for RSQL filter generation. Some cleanup

* Added basic support for WHERE clause filtering on the fact table

* Added working test for subquery SQL

* Added basic join logic for filters

* Added a test with a subquery and a filter join

* Refactored Schema classes and Query to support metric aggregation SQL expansion

* Added group by support

* Added logic for ID generation

* Added sorting logic and test

* Added pagination support and testing

* All column references use proper name now for SQL

* Removed calcite as a query engine

* Refactored HQLFilterOperation so it can be used for Having and Where clause generaiton

* Added HAVING clause support

* Changed Query to take schema instead of entityClass

* First pass at cleanup

* Fixed checkstyles

* Cleanup

* Hydrate Relationship

* Cleanup

* Added a complex SQL expression test and fixed bugs

* Fixed merge issues.  Added another test.  Added better logging

* Self-review

* Self-review

* Self-review

* Self-review

* Self-review

* Address comments from @aklish

* Refactor EntityHydrator (yahoo#893)

* rebase

* keep Jiaqi's changes

* fix id

* fix maven verify

* Remove HQLFilterOperation

* fix dictionary

* fix SqlEngineTest

* remove unused part

* make codacy happy

* should use getParametrizedType

* address comments

Implement GraphQLEntityProjectionMaker (yahoo#986)

* AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

* Initial sketch

PersistentResourceTest now passes

LifeCycleTest tests now pass

More API changes for data store transaction.  Also fixed createObject in persistent resource to take the correct projection

Started to refactor tests

IncludedProcessorTest refactored

Refactored LifeCycleTest

Started refactor on PersistentResourceTest

More refactoring.  Fixed a bug in Resource.toPersistentResource

Only one test failing in PersistentResourceTest

PersistentResourceTests now pass

UpdateOnCreateTests now pass

Added skeleton for translating JSON-API URL path into an EntityProjection

Basic EntityProjectionMaker almost complete

Added ability to merge entity projections by relationship

Added first test for EntityProjectionMaker

Non-working veresion (but clean)

Tests now pass

All EntityProjectioNMaker tests pass

Elide-Core now builds

Added handling of sparse attributes and relationships

Expanding attributes for included entities

Fixed a number of bugs found in IT tests

Fixed some of the EntityProjectionMaker tests

Fixed unit tests

Made temporary modifications to exclude GraphQL (Build now passes)

Added sparse field unit tests for EntityProjectionMaker

* Fixed build issues after rebase

* GraphQL projection maker using document

* Argument handling and fragment check

* Add comments

* Add fragment resolver

* fix typo

* break code into more methods

* remove pagination and sorting

* Removed duplicated Schema class from rebase

* re-arrange keywords

* Address comment

* Add arguments for attribute fields

* Handle arguments

* support partial query, update edges/node logic

* Entity projection with aliases

* Entity projection with aliases (yahoo#963)

* Hacked up PersistentResource with new design

* Core now compiles (and tests can run

* EntityProjectionMaker tests pass

* Build now passes (major cleanup still needed

* fix create relationship object using entity

* Add tests passed

* code clean up

* refactor fatcher, fix test cases

* rename keywords

* rebase branch (#12)

* rebased

* Graphql projection refactor (#13)

* fix fragment resolver

* Fix variable resolver

* Wire in entity projection4 json api (yahoo#964)

* Fixed DataStore API.  Fixed a lot of the core unit tests

* Checkstyles and more fixes

* Hibernate 5 Tests Pass

* Full build passes

* Wire in entity projection4 json api (yahoo#965)

* Initial concept.  No testing changed.

* Core compiles and EntityProjectionMaker tests (original ones) now pass

* Minor edits to TestRequestScope

* Full build passes now

* removed entity dictionary from entity projection

* Pre-inspection cleanup

* minor inspection fixup

* rebase

* Rebased on AggregationDataStore

* clean up extra new lines

* address comments

* Builder pattern

* update comments

* remove projection in entity

* fix jackson

* Hydrate Relationship (yahoo#987) (#15)

* Address some codecy comments

* Add comment for partial query

* Reenable tests

* Address comments, refactor alias

* Add test for alias

* swapped test case

* fix get type

Added AggregationDataStore Code (yahoo#991)

* Adding testing for aggregation data store

* Debugging integration tests

* Continuing testing work

* AggregationDataStore

* AggregationDataStore testing

* Added more tests

* Aggregation Data Store

* Cleaned up testing code

* Cleaned up code, fixed helper for AggregationDataStore

* end

* Fixed checkstyle, other minor fixes

* fixed comment

* Minor fixes

* Fixed id type issue, added exception for queries with no metrics

Fixed build (yahoo#993)

Making TimeDimension an interface (yahoo#992)

[maven-release-plugin] prepare release 5.0.0-pr1

[maven-release-plugin] prepare for next development iteration

Renamed graphQL file to match test (yahoo#1002)

[maven-release-plugin] prepare release 5.0.0-pr2

[maven-release-plugin] prepare for next development iteration

Add JoinTo annotation (yahoo#1006)

* Added JoinTo Annotation

* Added working test

* Added TODO comment for next PR

* Added TODO comment for next PR

* Added Sorting and Filtering support for JoinTo Columns

* Fixed IT tests for Aggregation Data Store

* Moved entityManager creation to happen separately for each query (yahoo#1008)

* Moved entityManager creation to happen separately for each query

* Closing EntityManager after each query

* Inspection rework

Column annotation (yahoo#1017)

* Solved column issue and added QueryEngineFactory

* Caching query engine in AggregationDataStore

* Fixed column description

* Update SQLQueryEngine.java (yahoo#1019)

* Add SQLMetrix, rearrange packages (yahoo#1020)

* Add SQLMetrix, rearrange packages

* address comment

Manager transacton manually (yahoo#1021)

* Manager transacton manually

* Add readonly

Hydrate GraphQL Schema with parameterized attributes (yahoo#1018)

* GraphQL schema expose expected argument name and its type for each attribute

* Change empty arguments to unmodifable set

AggregationStore: Add multiple time grain definitions to schema (yahoo#1022)

* Fixed checkstyle warnings and errors.  Separated the Query dimension interface from the Schema dimension interface

* Added skeleton code to convert entity projection arguments into time grains

* Cleanup

* Class renames per inspection comments

* Inspection comments

Refactor time dimension logic (yahoo#1028)

* Manager transacton manually

* Add readonly

* some rework

* use getTimeDimension()

* change exception

ISSUE-1026 Add support for @subselect (yahoo#1038)

* Manager transacton manually

* Add readonly

* some rework

* use getTimeDimension()

* change exception

* ISSUE-1026 Add support for @subselect

* Address comments

ISSUE-1027 Support join for having clause (yahoo#1039)

* Manager transacton manually

* Add readonly

* some rework

* use getTimeDimension()

* change exception

* ISSUE-1027 Support join for having clause

function name fixed to enableISO8601Dates (yahoo#1052)

Support for multiple queries at root is added (yahoo#1044)

* Support for multiple queries at root is added

* Added test with alias

* comments resolved

Add time grain to GraphQL schema (yahoo#1042)

* Added basic plumbing to push attributes from the entity projection down to the QueryEngine

* Added logic to expand SQL time expression in SQLQueryEngine

* Added SQLQueryEngine tests

* Added IT tests

* The AggregationStore now adds graphql parameters for parameterized columns

* Minor refactor

* Inspection rework

* Minor fix

Support multiple query of same entity with different alias (yahoo#1055)

* Support multiple query of same entity with different alias

* add static method to generate keyname for GraphQLProjectionInfo projections

* Remove aliasPartialQuerySameAttribute

MetadataStore Models (yahoo#1068)

* Manager transacton manually

* Add readonly

* some rework

* use getTimeDimension()

* change exception

* Metadatastore models

* Address comments

* address comments

* move root

* fix style check

SQLQueryTemplate Model (yahoo#1073)

* SQLQueryTemplate

* SQLTables

* refactor

* update sql dimension projection

* update sql dimension projection

* clean up dimension projection

* refactor sql components

* aggregatable field rework

* add comments

* rearrange packages

* Add dimension projection back

* fix checkstyle

* Add dictionary

* Simplify MetricFunction and SQLQueryTemplate

* Address comments

Integrate Metadata Model and SQLQueryTemplate Model (yahoo#1083)

* Integrate Metadata Model and SQLQueryTemplate Model

* remove AggregationDictionary and AggregationManager

* Add timezone

* Can only query analyticView

Fixed issues with rebase

Add auto configuration for aggregation store (yahoo#1087)

* Added autoconfiguration for QueryEngineFactory

* Unified class scanning.  Started cleaning up datastores so they only register the entities they manage

* Full build passes

* Minor cleanup

* Minor refactoring

* Added EntityManagerFactory bean configuratino

* Refactored class scanning for Elide standalone

* Updated spring boot starter pom

* Removed @entity from all metadata models.  Started cleaning up entity dictionary entity registration

* Broken implementation.  Just checking in so I can revert if needed.

* All tests pass

* Added unit tests

* Minor cleanup

* One more fix

* Fixed broken tests

* Added package include support back

* Class scanning for annotations ignores inherited

* Added a test based on inspection comments

* Inspection comment fix

* Changed initalization of MetadataStore

* More inspection rework

* Turned back on OWASP scanning

* More rework

remove @inherited (yahoo#1092)

Support Non JPA Entity in AggregationDataStore (yahoo#1051)

* Create AggregationDataStore module (yahoo#845)

* Create AggregationDataStore module

* Address Aaron's comments

* Fix build failure

AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

Define QueryEngine Contract (yahoo#867)

Fixed rebase on master

SQL Query Engine  (yahoo#878)

* AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

Added calcite as a dependency.  Merged in changes for QueryEngine interface

Fixed checkstyle issues

Added basic H2 DB test harness

Started breaking out projections

Moved getValue and setValue from PersistentResource to EntityDictionary

Added basic logic to hydrate entities

Added FromTable and FromSubquery annotations.  Add explicit exclusion of entity relationship hydration

Minor cleanup

Refactored HQLFilterOperation to take an alias generator

Added test support for RSQL filter generation. Some cleanup

Added basic support for WHERE clause filtering on the fact table

Added working test for subquery SQL

Added basic join logic for filters

Added a test with a subquery and a filter join

Refactored Schema classes and Query to support metric aggregation SQL expansion

Added group by support

Added logic for ID generation

Added sorting logic and test

Added pagination support and testing

All column references use proper name now for SQL

Removed calcite as a query engine

Refactored HQLFilterOperation so it can be used for Having and Where clause generaiton

Added HAVING clause support

Changed Query to take schema instead of entityClass

First pass at cleanup

Fixed checkstyles

Cleanup

Cleanup

Added a complex SQL expression test and fixed bugs

Fixed merge issues.  Added another test.  Added better logging

Fixed bug in pagination SQL generation

* Build is working

* Inspection rework

Add EntityProjection plumbing (yahoo#949)

* AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

* Initial sketch

PersistentResourceTest now passes

LifeCycleTest tests now pass

More API changes for data store transaction.  Also fixed createObject in persistent resource to take the correct projection

Started to refactor tests

IncludedProcessorTest refactored

Refactored LifeCycleTest

Started refactor on PersistentResourceTest

More refactoring.  Fixed a bug in Resource.toPersistentResource

Only one test failing in PersistentResourceTest

PersistentResourceTests now pass

UpdateOnCreateTests now pass

Added skeleton for translating JSON-API URL path into an EntityProjection

Basic EntityProjectionMaker almost complete

Added ability to merge entity projections by relationship

Added first test for EntityProjectionMaker

Non-working veresion (but clean)

Tests now pass

All EntityProjectioNMaker tests pass

Elide-Core now builds

Added handling of sparse attributes and relationships

Expanding attributes for included entities

Fixed a number of bugs found in IT tests

Fixed some of the EntityProjectionMaker tests

Fixed unit tests

Made temporary modifications to exclude GraphQL (Build now passes)

Added sparse field unit tests for EntityProjectionMaker

* Fixed build issues after rebase

* Removed duplicated Schema class from rebase

* Entity projection with aliases (yahoo#963)

* Hacked up PersistentResource with new design

* Core now compiles (and tests can run

* EntityProjectionMaker tests pass

* Build now passes (major cleanup still needed

* Wire in entity projection4 json api (yahoo#964)

* Fixed DataStore API.  Fixed a lot of the core unit tests

* Checkstyles and more fixes

* Hibernate 5 Tests Pass

* Full build passes

* Wire in entity projection4 json api (yahoo#965)

* Initial concept.  No testing changed.

* Core compiles and EntityProjectionMaker tests (original ones) now pass

* Minor edits to TestRequestScope

* Full build passes now

* removed entity dictionary from entity projection

* Pre-inspection cleanup

* minor inspection fixup

Hydrate Relationship (yahoo#987)

* AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

* Added basic H2 DB test harness

* Started breaking out projections

* Moved getValue and setValue from PersistentResource to EntityDictionary

* Added basic logic to hydrate entities

* Added FromTable and FromSubquery annotations.  Add explicit exclusion of entity relationship hydration

* Refactored HQLFilterOperation to take an alias generator

* Added test support for RSQL filter generation. Some cleanup

* Added basic support for WHERE clause filtering on the fact table

* Added working test for subquery SQL

* Added basic join logic for filters

* Added a test with a subquery and a filter join

* Refactored Schema classes and Query to support metric aggregation SQL expansion

* Added group by support

* Added logic for ID generation

* Added sorting logic and test

* Added pagination support and testing

* All column references use proper name now for SQL

* Removed calcite as a query engine

* Refactored HQLFilterOperation so it can be used for Having and Where clause generaiton

* Added HAVING clause support

* Changed Query to take schema instead of entityClass

* First pass at cleanup

* Fixed checkstyles

* Cleanup

* Hydrate Relationship

* Cleanup

* Added a complex SQL expression test and fixed bugs

* Fixed merge issues.  Added another test.  Added better logging

* Self-review

* Self-review

* Self-review

* Self-review

* Self-review

* Address comments from @aklish

* Refactor EntityHydrator (yahoo#893)

* rebase

* keep Jiaqi's changes

* fix id

* fix maven verify

* Remove HQLFilterOperation

* fix dictionary

* fix SqlEngineTest

* remove unused part

* make codacy happy

* should use getParametrizedType

* address comments

Implement GraphQLEntityProjectionMaker (yahoo#986)

* AggregationDataStore: Schema (yahoo#846)

* AggregationDataStore: Static Attribute Aggregation

* Address comments

* Implement TimeDimension and all its supporting components

* refactor

* Address comments from @aklish

* Address comments from @aklish && Tests & Javadoc

* Address comments from @aklish

* Address comments from @aklish and @hellohanchen

* Address comments from Aaron

* ToMany is not supported

* Address comments from Aaron

* Initial sketch

PersistentResourceTest now passes

LifeCycleTest tests now pass

More API changes for data store transaction.  Also fixed createObject in persistent resource to take the correct projection

Started to refactor tests

IncludedProcessorTest refactored

Refactored LifeCycleTest

Started refactor on PersistentResourceTest

More refactoring.  Fixed a bug in Resource.toPersistentResource

Only one test failing in PersistentResourceTest

PersistentResourceTests now pass

UpdateOnCreateTests now pass

Added skeleton for translating JSON-API URL path into an EntityProjection

Basic EntityProjectionMaker almost complete

Added ability to merge entity projections by relationship

Added first test for EntityProjectionMaker

Non-working veresion (but clean)

Tests now pass

All EntityProjectioNMaker tests pass

Elide-Core now builds

Added handling of sparse attributes and relationships

Expanding attributes for included entities

Fixed a number of bugs found in IT tests

Fixed some of the EntityProjectionMaker tests

Fixed unit tests

Made temporary modifications to exclude GraphQL (Build now passes)

Added sparse field unit tests for EntityProjectionMaker

* Fixed build issues after rebase

* GraphQL projection maker using document

* Argument handling and fragment check

* Add comments

* Add fragment resolver

* fix typo

* break code into more methods

* remove pagination and sorting

* Removed duplicated Schema class from rebase

* re-arrange keywords

* Address comment

* Add arguments for attribute fields

* Handle arguments

* support partial query, update edges/node logic

* Entity projection with aliases

* Entity projection with aliases (yahoo#963)

* Hacked up PersistentResource with new design

* Core now compiles (and tests can run

* EntityProjectionMaker tests pass

* Build now passes (major cleanup still needed

* fix create relationship object using entity

* Add tests passed

* code clean up

* refactor fatcher, fix test cases

* rename keywords

* rebase branch (#12)

* rebased

* Graphql projection refactor (#13)

* fix fragment resolver

* Fix variable resolver

* Wire in entity projection4 json api (yahoo#964)

* Fixed DataStore API.  Fixed a lot of the core unit tests

* Checkstyles and more fixes

* Hibernate 5 Tests Pass

* Full build passes

* Wire in entity projection4 json api (yahoo#965)

* Initial concept.  No testing changed.

* Core compiles and EntityProjectionMaker tests (original ones) now pass

* Minor edits to TestRequestScope

* Full build passes now

* removed entity dictionary from entity projection

* Pre-inspection cleanup

* minor inspection fixup

* rebase

* Rebased on AggregationDataStore

* clean up extra new lines

* address comments

* Builder pattern

* update comments

* remove projection in entity

* fix jackson

* Hydrate Relationship (yahoo#987) (#15)

* Address some codecy comments

* Add comment for partial query

* Reenable tests

* Address comments, refactor alias

* Add test for alias

* swapped test case

* fix get type

Added AggregationDataStore Code (yahoo#991)

* Adding testing for aggregation data store

* Debugging integration tests

* Continuing testing work

* AggregationDataStore

* AggregationDataStore testing

* Added more tests

* Aggregation Data Store

* Cleaned up testing code

* Cleaned up code, fixed helper for AggregationDataStore

* end

* Fixed checkstyle, other minor fixes

* fixed comment

* Minor fixes

* Fixed id type issue, added exception for queries with no metrics

Fixed build (yahoo#993)

Making TimeDimension an interface (yahoo#992)

* [maven-release-plugin] prepare release 5.0.0-pr1

* [maven-release-plugin] prepare for next development iteration

* Renamed graphQL file to match test (yahoo#1002)

* [maven-release-plugin] prepare release 5.0.0-pr2

* [maven-release-plugin] prepare for next development iteration

* Add JoinTo annotation (yahoo#1006)

* Added JoinTo Annotation

* Added working test

* Added TODO comment for next PR

* Added TODO comment for next PR

* Added Sorting and Filtering support for JoinTo Columns

* Fixed IT tests for Aggregation Data Store

* Moved entityManager creation to happen separately for each query (yahoo#1008)

* Moved entityManager creation to happen separately for each query

* Closing EntityManager after each query

* Inspection rework

* Column annotation (yahoo#1017)

* Solved column issue and added QueryEngineFactory

* Caching query engine in AggregationDataStore

* Fixed column description

* Update SQLQueryEngine.java (yahoo#1019)

* Add SQLMetrix, rearrange packages (yahoo#1020)

* Add SQLMetrix, rearrange packages

* address comment

* Manager transacton manually

* Add readonly

* Manager transacton manually (yahoo#1021)

* Manager transacton manually

* Add readonly

* Hydrate GraphQL Schema with parameterized attributes (yahoo#1018)

* GraphQL schema expose expected argument name and its type for each attribute

* Change empty arguments to unmodifable set

* AggregationStore: Add multiple time grain definitions to schema (yahoo#1022)

* Fixed checkstyle warnings and errors.  Separated the Query dimension interface from the Schema dimension interface

* Added skeleton code to convert entity projection arguments into time grains

* Cleanup

* Class renames per inspection comments

* Inspection comments

* some rework

* use getTimeDimension()

* change exception

* Refactor time dimension logic (yahoo#1028)

* Manager transacton manually

* Add readonly

* some rework

* use getTimeDimension()

* change exception

* ISSUE-1026 Add support for @subselect (yahoo#1038)

* Manager transacton manually

* Add readonly

* some rework

* use getTimeDimension()

* change exception

* ISSUE-1026 Add support for @subselect

* Address comments

* ISSUE-1027 Support join for having clause (yahoo#1039)

* Manager transacton manually

* Add readonly

* some rework

* use getTimeDimension()

* change exception

* ISSUE-1027 Support join for having clause

* View Design

* Add tests and cleanup

* rename annotation

* function name fixed to enableISO8601Dates (yahoo#1052)

* fix bugs

* Support for multiple queries at root is added (yahoo#1044)

* Support for multiple queries at root is added

* Added test with alias

* comments resolved

* merge annotations

* don't group by view relationship

* Add time grain to GraphQL schema (yahoo#1042)

* Added basic plumbing to push attributes from the entity projection down to the QueryEngine

* Added logic to expand SQL time expression in SQLQueryEngine

* Added SQLQueryEngine tests

* Added IT tests

* The AggregationStore now adds graphql parameters for parameterized columns

* Minor refactor

* Inspection rework

* Minor fix

* Support multiple query of same entity with different alias (yahoo#1055)

* Support multiple query of same entity with different alias

* add static method to generate keyname for GraphQLProjectionInfo projections

* Remove aliasPartialQuerySameAttribute

* MetadataStore Models (yahoo#1068)

* Manager transacton manually

* Add readonly

* some rework

* use getTimeDimension()

* change exception

* Metadatastore models

* Address comments

* address comments

* move root

* fix style check

* SQLQueryTemplate Model (yahoo#1073)

* SQLQueryTemplate

* SQLTables

* refactor

* update sql dimension projection

* update sql dimension projection

* clean up dimension projection

* refactor sql components

* aggregatable field rework

* add comments

* rearrange packages

* Add dimension projection back

* fix checkstyle

* Add dictionary

* Simplify MetricFunction and SQLQueryTemplate

* Address comments

* Integrate Metadata Model and SQLQueryTemplate Model (yahoo#1083)

* Integrate Metadata Model and SQLQueryTemplate Model

* remove AggregationDictionary and AggregationManager

* Add timezone

* Can only query analyticView

* integrate view with aggregation and metadata

* remove includeField

* remove @view

* Use NonEntityDictionary

* remove id

* revert access changes

* fix JPA entity check

* remove @entity from analyticViews

* use table name as relationship type id

* revert NonEntitydictinoary

* tiny rework

* Integration tests

* Add jsonapi ittest

* aggregation data store doesn't manage jpa entities

* address comments

fix integration dependencies (yahoo#1093)

[maven-release-plugin] prepare release 5.0.0-pr3

[maven-release-plugin] prepare for next development iteration

Fixed elide standalone pom from rebase

Fixed minor bug in rebase

Fixed rebase

Improving class scanning performance for MetadataStore (yahoo#1117)

Enable elide5 travis builds (yahoo#1129)

* Move repeated @Sql annotations to class level (yahoo#1119)

* Turning on travis builds with code coverage for Elide 5.x

* Fixing security issue in spring-boot-web

Co-authored-by: Brutus5000 <[email protected]>

Fix sorting and ambiguous join issue (yahoo#1127)

* Added sorting on aggregated metric based on latest elide-5.x

* Fix ambiguity problem

* update comments

* fix codacy

* refactor generateColumnReference

* update comment

* address comments

* test cleanup

* update unittest

* fix elide core alias

* QueryValidatorTest

* EntityProjectionTranslatorTest

* go joinFragment approach

* delete jointrienode

Support no metric query (yahoo#1137)

[maven-release-plugin] prepare release 5.0.0-pr4

[maven-release-plugin] prepare for next development iteration

Check dependency injection (yahoo#1138)

* Move repeated @Sql annotations to class level (yahoo#1119)

* Fixing OWASP security warning for Tomcat dependency in Spring Web (yahoo#1132)

* Adding support for dependency injection of Checks.  Added test injection classes

* Unit tests pass

* Tests pass

* Removed Initializer Concept

Co-authored-by: Brutus5000 <[email protected]>

Fix travis log length (yahoo#1140)

* Move repeated @Sql annotations to class level (yahoo#1119)

* Fixing OWASP security warning for Tomcat dependency in Spring Web (yahoo#1132)

* Removed unnecessary request/response logging (to shorten travis logs)

* Address inspection comments

* Address inspection comments

* Address inspection comments

* Removed logging of graphQL model building to shorten length

* Fixed compilation error

Co-authored-by: Brutus5000 <[email protected]>

[maven-release-plugin] prepare release 5.0.0-pr5

[maven-release-plugin] prepare for next development iteration
…yahoo#1146)

* Removed UpdateOnCreate.  Refactored AuditLogger

* Refactored Sorting

* Refactored Pagination

* Refactored Pagination

* Pagination refactor builds and tests pass

* Codacy fixes

* Inspection rework

* Fixes build

* More inspection rework

* Fix build
* Refactored Sorting

* Refactored Pagination

* Refactored Pagination

* Pagination refactor builds and tests pass

* Codacy fixes

* Refactored SharePermission to NonTransferable

* Fixed build

* Fixed startup bug

* Fixed codacy and inspection comments

* Update elide-core/src/main/java/com/yahoo/elide/core/EntityDictionary.java

Co-Authored-By: Jon Kilroy <[email protected]>

* Inspection rework

Co-authored-by: Jon Kilroy <[email protected]>
* metadata refactor

* merge table and analyticView

* fix reflection package

* Make Table constrcut its own columns

* table json type alias

* add comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFC: Create Metadata For Aggregation Store
3 participants