druid/docs/tutorials
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
..
cluster.md docs: update correct config base on server spec (#13832) 2023-02-23 08:50:47 -08:00
docker.md Docs: reword single server page (#13659) 2023-01-11 21:12:52 -08:00
index.md Add Perl 5 to druid requirements (#13708) 2023-02-13 13:34:49 -08:00
tutorial-batch-hadoop.md Docs: reword single server page (#13659) 2023-01-11 21:12:52 -08:00
tutorial-batch-native.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
tutorial-batch.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
tutorial-compaction.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
tutorial-delete-data.md cleaning up and fixing links (#10528) 2020-12-17 13:37:43 -08:00
tutorial-ingestion-spec.md docs: remove maxRowsPerSegment where appropriate (#12071) 2022-07-28 16:52:13 +05:30
tutorial-jdbc.md docs: fix html nits (#13835) 2023-03-02 11:19:32 -08:00
tutorial-jupyter-index.md Python Druid API for use in notebooks (#13787) 2023-03-04 18:25:19 -08:00
tutorial-kafka.md docs: fix html nits (#13835) 2023-03-02 11:19:32 -08:00
tutorial-kerberos-hadoop.md Update tutorial-kerberos-hadoop.md (#8689) 2019-10-22 14:40:41 -07:00
tutorial-msq-convert-spec.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
tutorial-msq-extern.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
tutorial-query.md fix quickstart (#13126) 2022-09-20 17:44:21 -07:00
tutorial-retention.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
tutorial-rollup.md docs: remove maxRowsPerSegment where appropriate (#12071) 2022-07-28 16:52:13 +05:30
tutorial-sketches-theta.md Various documentation updates. (#13107) 2022-09-16 21:58:11 -07:00
tutorial-sql-query-view.md Tutorial: Query view (#13565) 2023-01-27 14:29:43 -08:00
tutorial-transform-spec.md docs: remove maxRowsPerSegment where appropriate (#12071) 2022-07-28 16:52:13 +05:30
tutorial-unnest-datasource.md Various changes and fixes to UNNEST. (#13892) 2023-03-10 16:42:08 +05:30
tutorial-update-data.md docs: Refresh the update data tutorial (#13641) 2023-02-01 18:18:16 -08:00