druid/integration-tests/docker/environment-configs
Gian Merlino bf20f9e979
DruidInputSource: Fix issues in column projection, timestamp handling. (#10267)
* DruidInputSource: Fix issues in column projection, timestamp handling.

DruidInputSource, DruidSegmentReader changes:

1) Remove "dimensions" and "metrics". They are not necessary, because we
   can compute which columns we need to read based on what is going to
   be used by the timestamp, transform, dimensions, and metrics.
2) Start using ColumnsFilter (see below) to decide which columns we need
   to read.
3) Actually respect the "timestampSpec". Previously, it was ignored, and
   the timestamp of the returned InputRows was set to the `__time` column
   of the input datasource.

(1) and (2) together fix a bug in which the DruidInputSource would not
properly read columns that are used as inputs to a transformSpec.

(3) fixes a bug where the timestampSpec would be ignored if you attempted
to set the column to something other than `__time`.

(1) and (3) are breaking changes.

Web console changes:

1) Remove "Dimensions" and "Metrics" from the Druid input source.
2) Set timestampSpec to `{"column": "__time", "format": "millis"}` for
   compatibility with the new behavior.

Other changes:

1) Add ColumnsFilter, a new class that allows input readers to determine
   which columns they need to read. Currently, it's only used by the
   DruidInputSource, but it could be used by other columnar input sources
   in the future.
2) Add a ColumnsFilter to InputRowSchema.
3) Remove the metric names from InputRowSchema (they were unused).
4) Add InputRowSchemas.fromDataSchema method that computes the proper
   ColumnsFilter for given timestamp, dimensions, transform, and metrics.
5) Add "getRequiredColumns" method to TransformSpec to support the above.

* Various fixups.

* Uncomment incorrectly commented lines.

* Move TransformSpecTest to the proper module.

* Add druid.indexer.task.ignoreTimestampSpecForDruidInputSource setting.

* Fix.

* Fix build.

* Checkstyle.

* Misc fixes.

* Fix test.

* Move config.

* Fix imports.

* Fixup.

* Fix ShuffleResourceTest.

* Add import.

* Smarter exclusions.

* Fixes based on tests.

Also, add TIME_COLUMN constant in the web console.

* Adjustments for tests.

* Reorder test data.

* Update docs.

* Update docs to say Druid 0.22.0 instead of 0.21.0.

* Fix test.

* Fix ITAutoCompactionTest.

* Changes from review & from merging.
2021-03-25 10:32:21 -07:00
..
override-examples support Aliyun OSS service as deep storage (#9898) 2020-07-01 22:20:53 -07:00
broker integration test for coordinator and overlord leadership client (#10680) 2020-12-17 22:50:12 -08:00
common DruidInputSource: Fix issues in column projection, timestamp handling. (#10267) 2021-03-25 10:32:21 -07:00
common-ldap Ldap integration tests (#10901) 2021-02-23 13:29:57 -08:00
coordinator integration test for coordinator and overlord leadership client (#10680) 2020-12-17 22:50:12 -08:00
historical integration test for coordinator and overlord leadership client (#10680) 2020-12-17 22:50:12 -08:00
historical-for-query-retry-test Integration tests and docs for auto compaction with different partitioning (#10354) 2020-09-15 11:28:09 -07:00
indexer Fix byte calculation for maxBytesInMemory to take into account of Sink/Hydrant Object overhead (#10740) 2021-01-27 00:34:56 -08:00
middlemanager integration test for coordinator and overlord leadership client (#10680) 2020-12-17 22:50:12 -08:00
overlord Ldap integration tests (#10901) 2021-02-23 13:29:57 -08:00
router integration test for coordinator and overlord leadership client (#10680) 2020-12-17 22:50:12 -08:00
router-custom-check-tls Fixes and tests related to the Indexer process. (#10631) 2020-12-08 16:02:26 -08:00
router-no-client-auth-tls Fixes and tests related to the Indexer process. (#10631) 2020-12-08 16:02:26 -08:00
router-permissive-tls Fixes and tests related to the Indexer process. (#10631) 2020-12-08 16:02:26 -08:00