druid/docs/querying
Gian Merlino 4b1ffbc452
Various changes and fixes to UNNEST. (#13892)
* Various changes and fixes to UNNEST.

Native changes:

1) UnnestDataSource: Replace "column" and "outputName" with "virtualColumn".
   This enables pushing expressions into the datasource. This in turn
   allows us to do the next thing...

2) UnnestStorageAdapter: Logically apply query-level filters and virtual
   columns after the unnest operation. (Physically, filters are pulled up,
   when possible.) This is beneficial because it allows filters and
   virtual columns to reference the unnested column, and because it is
   consistent with how the join datasource works.

3) Various documentation updates, including declaring "unnest" as an
   experimental feature for now.

SQL changes:

1) Rename DruidUnnestRel (& Rule) to DruidUnnestRel (& Rule). The rel
   is simplified: it only handles the UNNEST part of a correlated join.
   Constant UNNESTs are handled with regular inline rels.

2) Rework DruidCorrelateUnnestRule to focus on pulling Projects from
   the left side up above the Correlate. New test testUnnestTwice verifies
   that this works even when two UNNESTs are stacked on the same table.

3) Include ProjectCorrelateTransposeRule from Calcite to encourage
   pushing mappings down below the left-hand side of the Correlate.

4) Add a new CorrelateFilterLTransposeRule and CorrelateFilterRTransposeRule
   to handle pulling Filters up above the Correlate. New tests
   testUnnestWithFiltersOutside and testUnnestTwiceWithFilters verify
   this behavior.

5) Require a context feature flag for SQL UNNEST, since it's undocumented.
   As part of this, also cleaned up how we handle feature flags in SQL.
   They're now hooked into EngineFeatures, which is useful because not
   all engines support all features.
2023-03-10 16:42:08 +05:30
..
aggregations.md stringFirst and stringLast supported in ingestion (#12466) 2022-04-22 10:28:49 +08:00
caching.md docs: fix html nits (#13835) 2023-03-02 11:19:32 -08:00
datasource.md Various changes and fixes to UNNEST. (#13892) 2023-03-10 16:42:08 +05:30
datasourcemetadataquery.md Refresh query docs. (#9704) 2020-04-15 16:12:20 -07:00
dimensionspecs.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
filters.md Adjust "in" filter null behavior to match "selector". (#12863) 2022-08-08 09:08:36 -07:00
granularities.md Document missed simple granularities (#12768) 2022-07-14 14:02:28 +08:00
groupbyquery.md document virtualColumns in native query documentation, fix some redirects (#12917) 2022-08-18 20:49:23 -07:00
having.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
hll-old.md De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
joins.md Sort-merge join and hash shuffles for MSQ. (#13506) 2023-03-08 14:19:39 -08:00
limitspec.md Sql docs items (#12530) 2022-05-17 16:56:31 -07:00
lookups.md Fix value of lookup sync period in docs (#13695) 2023-02-01 18:12:00 -08:00
multi-value-dimensions.md Various changes and fixes to UNNEST. (#13892) 2023-03-10 16:42:08 +05:30
multitenancy.md Addition to Multitenancy considerations doc (#12567) 2022-06-02 10:32:14 -07:00
nested-columns.md doc: List Protobuf as a supported format (#13640) 2023-01-06 15:09:37 -08:00
post-aggregations.md Support postaggregation function as in Math.pow() (#13703) (#13704) 2023-01-31 22:55:04 +05:30
query-context.md Update default for finalize in query-context.md (#13763) 2023-02-22 12:35:36 -08:00
query-execution.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
querying.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
scan-query.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
searchquery.md document virtualColumns in native query documentation, fix some redirects (#12917) 2022-08-18 20:49:23 -07:00
segmentmetadataquery.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
select-query.md Add "offset" parameter to the Scan query. (#10233) 2020-08-13 14:56:24 -07:00
sorting-orders.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
sql-aggregations.md Add validation for aggregations on __time (#13793) 2023-03-07 17:16:36 -08:00
sql-api.md Sql docs items (#12530) 2022-05-17 16:56:31 -07:00
sql-data-types.md Various changes and fixes to UNNEST. (#13892) 2023-03-10 16:42:08 +05:30
sql-functions.md basic docs for nested column query functions (#12922) 2022-08-19 17:12:19 -07:00
sql-jdbc.md doc: add a basic JDBC tutorial (#13343) 2022-11-30 16:25:35 -08:00
sql-json-functions.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
sql-metadata-tables.md Improve memory efficiency of WrappedRoaringBitmap. (#13889) 2023-03-09 15:48:02 -08:00
sql-multivalue-string-functions.md Sql docs items (#12530) 2022-05-17 16:56:31 -07:00
sql-operators.md Sql docs items (#12530) 2022-05-17 16:56:31 -07:00
sql-query-context.md Always return sketches from DS_HLL, DS_THETA, DS_QUANTILES_SKETCH. (#13247) 2022-11-03 09:43:00 -07:00
sql-scalar.md Add TIME_IN_INTERVAL SQL operator. (#12662) 2022-06-21 13:05:37 -07:00
sql-translation.md Remove limit from timeseries (#13457) 2022-12-02 12:19:59 -08:00
sql.md IMPLY-12348: Update description of UNION ALL in SQL syntax doc (#12710) 2022-07-05 13:08:01 -07:00
timeboundaryquery.md Refresh query docs. (#9704) 2020-04-15 16:12:20 -07:00
timeseriesquery.md document virtualColumns in native query documentation, fix some redirects (#12917) 2022-08-18 20:49:23 -07:00
topnmetricspec.md Sql docs items (#12530) 2022-05-17 16:56:31 -07:00
topnquery.md document virtualColumns in native query documentation, fix some redirects (#12917) 2022-08-18 20:49:23 -07:00
troubleshooting.md Refactor SQL docs (#12239) 2022-02-11 14:43:30 -08:00
using-caching.md Docs - query caching (#11584) 2022-04-18 17:00:21 +08:00
virtual-columns.md Add missing MSQ error code fields to docs (#13308) 2022-11-10 21:03:04 +05:30