Apache Druid: a high performance real-time analytics database.
Go to file
Gian Merlino 77925cdcdd
Expressions: fixes for round-trips of floating point literals, Long.MIN_VALUE literals, Shuffle.visitAll. (#13037)
* SQL: Fix round-trips of floating point literals.

When writing RexLiterals into Druid expressions, we now write non-integer
numeric literals in such a way that ensures they are parsed as doubles
on the other end.

* Updates from code review, and some additional stuff inspired by the
investigation.

- Remove unnecessary formatting code from DruidExpression.doubleLiteral:
  it handles things just fine with its default behavior.

- Fix a problem where expression literals could not represent Long.MIN_VALUE.
  Now, integer literals start life off as BigIntegerExpr instead of LongExpr,
  and are converted to LongExpr during flattening. This is necessary because,
  in order to avoid ambiguity between unary minus and negative literals, our
  grammar does not actually have true negative literals. Negative numbers must
  be represented as unary minus next to a positive literal.

- Fix a bug  introduced in #12230 where shuttle.visitAll(args) delegated
  to shuttle.visit(arg) instead of arg.visit(shuttle). The latter does
  a recursive visitation, which is the intended behavior.

* Style fixes.

* Move regexp to the right place.
2022-09-12 17:06:20 -07:00
.github Lock hadoop dependencies to 2.8.5 (#11583) 2021-08-12 15:16:47 +05:30
.idea Poison stupid pool (#12646) 2022-07-03 14:36:22 -07:00
benchmarks Expose HTTP Response headers from SqlResource (#13052) 2022-09-12 01:40:06 -07:00
cloud Bump up the version to 25.0.0 (#12975) 2022-08-29 11:27:38 +05:30
codestyle Add druid-multi-stage-query extension. (#12918) 2022-08-23 18:44:01 -07:00
core Expressions: fixes for round-trips of floating point literals, Long.MIN_VALUE literals, Shuffle.visitAll. (#13037) 2022-09-12 17:06:20 -07:00
dev Fix misspelling in license.md (#12941) 2022-08-24 10:53:47 +08:00
distribution Enable msq for docker by default (#13069) 2022-09-11 21:00:32 +05:30
docs Bump the version of Druid docker image from 0.16.0-incubating to latest (#13058) 2022-09-10 14:06:00 +05:30
examples export com.sun.management.internal (#13068) 2022-09-12 09:03:22 -07:00
extendedset Bump up the version to 25.0.0 (#12975) 2022-08-29 11:27:38 +05:30
extensions-contrib prometheus-emitter supports sending metrics to pushgateway regularly … (#13034) 2022-09-09 20:46:14 +08:00
extensions-core Cleaner JSON for various input sources and formats. (#13064) 2022-09-12 10:29:31 -07:00
helm/druid replaces hard-coded probe delays with helm values (#12805) 2022-07-26 14:04:06 +05:30
hll Bump up the version to 25.0.0 (#12975) 2022-08-29 11:27:38 +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 Bump up the version to 25.0.0 (#12975) 2022-08-29 11:27:38 +05:30
indexing-service Bump up the version to 25.0.0 (#12975) 2022-08-29 11:27:38 +05:30
integration-tests Add interpolation to JsonConfigurator (#13023) 2022-09-07 12:48:01 +05:30
integration-tests-ex Add interpolation to JsonConfigurator (#13023) 2022-09-07 12:48:01 +05:30
licenses Web console: Multi-stage query support (#12919) 2022-08-24 16:17:12 -07:00
processing Expose HTTP Response headers from SqlResource (#13052) 2022-09-12 01:40:06 -07:00
publications De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
server Expose HTTP Response headers from SqlResource (#13052) 2022-09-12 01:40:06 -07:00
services Add query/time metric for SQL queries from router (#12867) 2022-09-07 13:54:46 +05:30
sql Expressions: fixes for round-trips of floating point literals, Long.MIN_VALUE literals, Shuffle.visitAll. (#13037) 2022-09-12 17:06:20 -07:00
web-console fix number of expected functions (#13050) 2022-09-09 13:42:01 -07:00
website prometheus-emitter supports sending metrics to pushgateway regularly … (#13034) 2022-09-09 20:46:14 +08:00
.asf.yaml Add .asf.yaml. (#9083) 2019-12-20 16:45:38 -08: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 Add CTA and fix typo (#13009) 2022-09-06 11:16:50 -07:00
.lgtm.yml Suppress LGTM warnings about stack trace exposure (#9631) 2020-04-09 17:31:03 -07:00
.travis.yml Web console: upgrade the console to use node 16 (#13017) 2022-09-06 11:15:23 -07:00
CONTRIBUTING.md Fix numbered list formatting in markdown. (#9664) 2020-04-21 20:18:12 -07: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 support Aliyun OSS service as deep storage (#9898) 2020-07-01 22:20:53 -07:00
NOTICE Update year in the notice file and the release process instructions (#12622) 2022-08-23 18:17:18 +05:30
README.md Readme - link fix to build guide (#12849) 2022-08-03 19:32:37 +08:00
README.template De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
check_test_suite.py ignore licenses changes in check test script (#12964) 2022-08-25 12:31:28 -07:00
check_test_suite_test.py ignore licenses changes in check test script (#12964) 2022-08-25 12:31:28 -07:00
it.sh Building druid-it-tools and running for travis in it.sh (#12957) 2022-08-30 12:48:07 +05:30
licenses.yaml Add interpolation to JsonConfigurator (#13023) 2022-09-07 12:48:01 +05:30
owasp-dependency-check-suppressions.xml Suppress false CVEs (#13026) 2022-09-06 11:46:56 +05:30
pom.xml Add interpolation to JsonConfigurator (#13023) 2022-09-07 12:48:01 +05:30
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 Helm


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. 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 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 Apache Druid Slack channel. Please use this invitation link to join and invite others.

Building from source

Please note that JDK 8 or JDK 11 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