Apache Druid: a high performance real-time analytics database.
Go to file
Clint Wylie de9da37384
topn with granularity regression fixes (#17565)
* topn with granularity regression fixes

changes:
* fix issue where topN with query granularity other than ALL would use the heap algorithm when it was actual able to use the pooled algorithm, and incorrectly used the pool algorithm in cases where it must use the heap algorithm, a regression from #16533
* fix issue where topN with query granularity other than ALL could incorrectly process values in the wrong time bucket, another regression from #16533

* move defensive check outside of loop

* more test

* extra layer of safety

* move check outside of loop

* fix spelling

* add query context parameter to allow using pooled algorithm for topN when multi-passes is required even wihen query granularity is not all

* add comment, revert IT context changes and add new context flag
2024-12-17 21:21:24 +05:30
.github remove sql_compatibility from build matrix and only test sql compatible mode (#17557) 2024-12-16 15:51:12 -08:00
.idea Remove support for Java 8 (#17466) 2024-11-21 15:33:08 +05:30
benchmarks Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
cloud Prepare master for 32.0.0 release (#17022) 2024-09-10 11:01:20 +05:30
codestyle Add back `UnnecessaryFullyQualifiedName` rule in pmd ruleset (#17570) 2024-12-17 12:43:12 +05:30
dev Provide `chmod` command for `-XX:OnOutOfMemoryError` from shell script (#17054) 2024-09-13 00:17:28 -04:00
distribution Remove support for Java 8 (#17466) 2024-11-21 15:33:08 +05:30
docs Add missing docs for lookup based task context properties (#17562) 2024-12-16 11:05:01 +05:30
examples Remove support for Java 8 (#17466) 2024-11-21 15:33:08 +05:30
extensions-contrib Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
extensions-core Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
hooks Git hooks should fail on errors; pass args to git hooks (#12322) 2022-03-10 09:07:50 +09:00
indexing-hadoop Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
indexing-service Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
integration-tests topn with granularity regression fixes (#17565) 2024-12-17 21:21:24 +05:30
integration-tests-ex Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
licenses Web console: change to use @fontsource/open-sans (#16786) 2024-07-23 21:28:59 -07:00
processing topn with granularity regression fixes (#17565) 2024-12-17 21:21:24 +05:30
publications De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
quidem-ut Add back `UnnecessaryFullyQualifiedName` rule in pmd ruleset (#17570) 2024-12-17 12:43:12 +05:30
server Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
services Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
sql Refactor: Replace explicit type arguments with diamond operator (#17567) 2024-12-17 14:37:45 +05:30
web-console remove druid.sql.planner.serializeComplexValues config in favor of always serializing complex values (#17549) 2024-12-11 13:07:56 -08:00
website [Docs] Improve Bloom filter topic (#17547) 2024-12-10 11:43:56 -08:00
.asf.yaml .asf.yaml: Add required "repository" field. (#14499) 2023-06-28 15:05:07 -07:00
.backportrc.json Add 0.18.0 to .backportrc.json to facilitate backport. (#9661) 2020-04-11 13:49:04 -07: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 Quidem record (#16624) 2024-08-05 14:58:32 +02:00
.lgtm.yml be consistent about referring to the web console by its name (#13118) 2022-09-19 15:02:17 -07:00
CONTRIBUTING.md Document our conventions for writing messages (#13916) 2023-04-03 21:30:20 -07:00
LABELS Migrate jaxb bind dependency to jakarta (#17370) 2024-10-26 21:24:17 -07:00
LICENSE Adding the PropertyNamingStrategies from jackson for fixing hadoop ingestion (#14671) 2023-08-01 20:02:43 +05:30
NOTICE Update notice file. (#15702) 2024-01-23 15:56:22 +05:30
README.md Remove support for Java 8 (#17466) 2024-11-21 15:33:08 +05:30
README.template De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
check_test_suite.py Remove support for Java 8 (#17466) 2024-11-21 15:33:08 +05:30
check_test_suite_test.py remove Travis CI (#13789) 2023-02-10 01:46:56 -08:00
doap_Druid.rdf Fix the created property in DOAP RDF file (#14971) 2023-09-13 06:12:35 -07:00
it.sh Build reliablity fixes (#15048) 2023-09-28 12:27:52 -07:00
licenses.yaml Web console: refactor and improve the segment timeline (try 2) (#17521) 2024-11-27 19:30:40 -08:00
owasp-dependency-check-suppressions.xml suppress kafka cve for ranger extension (#17531) 2024-12-02 21:25:39 -08:00
pom.xml Upgrade maven commit-id plugi(#17571) 2024-12-17 12:43:01 +05:30
rewrite.yml Upgrading org.codehaus to com.fasterxml (#17371) 2024-11-07 10:55:47 +01:00
upload.sh Adding licenses and enable apache-rat-plugin. (#6215) 2018-09-18 08:39:26 -07:00

README.md

Coverage Status Docker Helm

Workflow Status
⚙️ CodeQL Config codeql-config
🔍 CodeQL codeql
🕒 Cron Job ITS cron-job-its
🏷️ Labeler labeler
♻️ Reusable Revised ITS reusable-revised-its
♻️ Reusable Standard ITS reusable-standard-its
♻️ Reusable Unit Tests reusable-unit-tests
🔄 Revised ITS revised-its
🔧 Standard ITS standard-its
🛠️ Static Checks static-checks
🧪 Unit and Integration Tests Unified unit-and-integration-tests-unified
🔬 Unit Tests unit-tests

Website Twitter Download Get Started Documentation Community Build Contribute License


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. The design documentation explains the key concepts.

Getting started

You can get started with Druid with our local or Docker 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 web 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

See the latest documentation for the documentation for the current official release. If you need information on a previous release, you can browse previous releases documentation.

Make documentation and tutorials updates in /docs using Markdown or extended Markdown (MDX). Then, open a pull request.

To build the site locally, you need Node 16.14 or higher and to install Docusaurus 2 with npm|yarn install in the website directory. Then you can run npm|yarn start to launch a local build of the docs.

If you're looking to update non-doc pages like Use Cases, those files are in the druid-website-src repo.

Community

Visit the official project community page to read about getting involved in contributing to Apache Druid, and how we help one another use and operate Druid.

  • Druid users can find help in the druid-user mailing list on Google Groups, and have more technical conversations in #troubleshooting on Slack.
  • Druid development discussions take place in the druid-dev mailing list (dev@druid.apache.org). Subscribe by emailing dev-subscribe@druid.apache.org. For live conversations, join the #dev channel on Slack.

Check out the official community page for details of how to join the community Slack channels.

Find articles written by community members and a calendar of upcoming events on the project site - contribute your own events and articles by submitting a PR in the apache/druid-website-src repository.

Building from source

Please note that JDK 11 or JDK 17 is required to build Druid.

See the latest build guide for instructions on building Apache Druid from source.

Contributing

Please follow the community guidelines for contributing.

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

License

Apache License, Version 2.0