Apache Druid: a high performance real-time analytics database.
Go to file
Gian Merlino d886463253
Add join-related DataSource types, and analysis functionality. (#9235)
* Add join-related DataSource types, and analysis functionality.

Builds on #9111 and implements the datasource analysis mentioned in #8728. Still can't
handle join datasources, but we're a step closer.

Join-related DataSource types:

1) Add "join", "lookup", and "inline" datasources.
2) Add "getChildren" and "withChildren" methods to DataSource, which will be used
   in the future for query rewriting (e.g. inlining of subqueries).

DataSource analysis functionality:

1) Add DataSourceAnalysis class, which breaks down datasources into three components:
   outer queries, a base datasource (left-most of the highest level left-leaning join
   tree), and other joined-in leaf datasources (the right-hand branches of the
   left-leaning join tree).
2) Add "isConcrete", "isGlobal", and "isCacheable" methods to DataSource in order to
   support analysis.

Other notes:

1) Renamed DataSource#getNames to DataSource#getTableNames, which I think is clearer.
   Also, made it a Set, so implementations don't need to worry about duplicates.
2) The addition of "isCacheable" should work around #8713, since UnionDataSource now
   returns false for cacheability.

* Remove javadoc comment.

* Updates reflecting code review.

* Add comments.

* Add more comments.
2020-01-22 14:54:47 -08:00
.github De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
.idea Implementing dropwizard emitter for druid (#7363) 2019-10-01 14:59:30 -07:00
benchmarks Add join-related DataSource types, and analysis functionality. (#9235) 2020-01-22 14:54:47 -08:00
cloud De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
codestyle De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
core first/last aggregators and nulls (#9161) 2020-01-20 11:51:54 -08:00
dev De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
distribution Graduation update for ASF release process guide and download links (#9126) 2020-01-06 15:00:33 -06:00
docs first/last aggregators and nulls (#9161) 2020-01-20 11:51:54 -08:00
examples Minor doc updates (#9217) 2020-01-20 11:34:37 -08:00
extendedset Set version to 0.18.0-SNAPSHOT (#9109) 2020-01-02 17:55:10 -05:00
extensions-contrib Remove the deprecated interval-chunking stuff. (#9216) 2020-01-19 17:14:23 -08:00
extensions-core Remove the deprecated interval-chunking stuff. (#9216) 2020-01-19 17:14:23 -08:00
hll Set version to 0.18.0-SNAPSHOT (#9109) 2020-01-02 17:55:10 -05:00
indexing-hadoop De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
indexing-service Add join-related DataSource types, and analysis functionality. (#9235) 2020-01-22 14:54:47 -08:00
integration-tests Fix DOCKER_HOST_IP handling for multihomed machines. (#9225) 2020-01-21 09:01:19 -08:00
licenses De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
processing Add join-related DataSource types, and analysis functionality. (#9235) 2020-01-22 14:54:47 -08:00
publications De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
server Add join-related DataSource types, and analysis functionality. (#9235) 2020-01-22 14:54:47 -08:00
services Support both IndexTuningConfig and ParallelIndexTuningConfig for compaction task (#9222) 2020-01-21 13:56:54 -08:00
sql Add join-related DataSource types, and analysis functionality. (#9235) 2020-01-22 14:54:47 -08:00
web-console allow empty values to be set in the auto form (#9198) 2020-01-16 21:06:51 -08:00
website Remove the deprecated interval-chunking stuff. (#9216) 2020-01-19 17:14:23 -08:00
.asf.yaml Add .asf.yaml. (#9083) 2019-12-20 16:45:38 -08:00
.backportrc.json Graduation update for ASF release process guide and download links (#9126) 2020-01-06 15:00:33 -06:00
.codecov.yml Use Codecov (#8388) 2019-08-28 08:49:30 -07:00
.dockerignore Add docker container for druid (#6896) 2019-02-08 12:12:28 +00:00
.gitignore autogenerate NOTICE.BINARY from NOTICE and licenses.yaml (#8306) 2019-08-21 12:46:27 -07:00
.lgtm.yml Add license header for LGTM yaml config file (#8902) 2019-11-18 18:26:45 -08:00
.travis.yml Parallel indexing single dim partitions (#8925) 2019-12-09 23:05:49 -08:00
CONTRIBUTING.md De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
LABELS Add plain text README.txt, use relative link from README.md to build.md (#7611) 2019-05-09 21:29:26 -07:00
LICENSE De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
NOTICE De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
README.md Update README.md 2019-12-20 20:56:53 -08:00
README.template De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
licenses.yaml Bump Jackson to 2.10.2 (#9173) 2020-01-17 11:39:32 +01:00
owasp-dependency-check-suppressions.xml Suppress CVE-2019-20330 for htrace-core-4.0.1 (#9189) 2020-01-14 21:15:24 -08:00
pom.xml More tests for range partition parallel indexing (#9232) 2020-01-21 12:59:43 -08:00
upload.sh Adding licenses and enable apache-rat-plugin. (#6215) 2018-09-18 08:39:26 -07:00

README.md

Slack Build Status Language grade: Java Coverage Status Docker


Website | Documentation | Developer Mailing List | User Mailing List | Slack | Twitter | Download


Apache Druid

Druid is a high performance real-time analytics database. Druid's main value add is to reduce time to insight and action.

Druid is designed for workflows where fast queries and ingest really matter. Druid excels at powering UIs, running operational (ad-hoc) queries, or handling high concurrency. Consider Druid as an open source alternative to data warehouses for a variety of use cases.

Getting started

You can get started with Druid with our quickstart.

Druid provides a rich set of APIs (via HTTP and JDBC) for loading, managing, and querying your data. You can also interact with Druid via the built-in console (shown below).

Load data

data loader Kafka

Load streaming and batch data using a point-and-click wizard to guide you through ingestion setup. Monitor one off tasks and ingestion supervisors.

Manage the cluster

management

Manage your cluster with ease. Get a view of your datasources, segments, ingestion tasks, and services from one convenient location. All powered by SQL systems tables, allowing you to see the underlying query for each view.

Issue queries

query view combo

Use the built-in query workbench to prototype DruidSQL and native queries or connect one of the many tools that help you make the most out of Druid.

Documentation

You can find the documentation for the latest Druid release on the project website.

If you would like to contribute documentation, please do so under /docs in this repository and submit a pull request.

Community

Community support is available on the druid-user mailing list, which is hosted at Google Groups.

Development discussions occur on dev@druid.apache.org, which you can subscribe to by emailing dev-subscribe@druid.apache.org.

Chat with Druid committers and users in real-time on the #druid channel in the Apache Slack team. Please use this invitation link to join the ASF Slack, and once joined, go into the #druid channel.

Building from source

Please note that JDK 8 is required to build Druid.

For instructions on building Druid from source, see docs/development/build.md

Contributing

Please follow the community guidelines for contributing.

For instructions on setting up IntelliJ dev/intellij-setup.md

License

Apache License, Version 2.0