Commit Graph

12018 Commits

Author SHA1 Message Date
Kashif Faraz 1f4d892c9a Suppress jackson-databind CVE-2022-42003 and CVE-2022-42004 2022-10-20 21:37:25 +05:30
AmatyaAvadhanula 4ffdea9014
Fix Overlord leader election when task lock re-acquisition fails (#13236)
Overlord leader election can sometimes fail due to task lock re-acquisition issues.
This commit solves the issue by failing such tasks and clearing all their locks.
2022-10-18 21:10:15 +05:30
Vadim Ogievetsky d1ec609ea2 Docs: fix doc search (#13164)
* fix doc search

* upgrade website node to 16

* change website travis script

* move spellcheck notification

* explicit path to npm bin

* cd to the correct place
2022-10-03 19:31:06 -07:00
Abhishek Agarwal f0cef36abf Fix version in docker-compose 2022-10-03 14:30:22 +05:30
Abhishek Agarwal 94e36731f9 Fix assertion error in sql planning for latest aggregators (#13151)
* Fix sql planning bug for latest aggregators

* change test name

* Fix error messages

* fix error message again
2022-09-28 21:02:57 +05:30
Vadim Ogievetsky cffa3bd263
[backport] Backport 24.0.1 web console issue fixes (#13146)
* fix number of expected functions (#13050)

* default to no compare (#13041)

* quote columns, datasources in auto complete if needed (#13060)

* Web console: better detection for arrays containing objects (#13077)

* better detection for arrays containing objects

* include boolean also

* link to error docs (#13094)

* Web console: correctly escape path based flatten specs (#13105)

* fix path generation

* do escape

* fix replace

* fix replace for good

* append to exisitng callout (#13130)

* better spec conversion with issues (#13136)

* bump version to 24.0.1
2022-09-28 12:16:48 +05:30
317brian 9de988bec6 fix: fix broken postgres link (#13135) 2022-09-21 20:50:11 -07:00
317brian 03945d4388 fix: follow naming convention for msq task engine (#13127)
* fix: follow naming convention for msq task engine

* more fixes

* add back in experimental

* fix anchor
2022-09-21 20:50:01 -07:00
Vadim Ogievetsky d792c28bb7 fix quickstart (#13126) 2022-09-21 20:49:49 -07:00
Vadim Ogievetsky b0f03c8c22 fix html tags in docs (#13117)
* fix html tags in docs

* revert not null
2022-09-18 19:43:54 -07:00
Vadim Ogievetsky 4117b93dff adjust docs and images (#13067) 2022-09-18 19:43:35 -07:00
Gian Merlino 4b2f1adecf Docs: Clarify the situation with SELECT. (#13109) 2022-09-17 14:07:34 -07:00
Gian Merlino 5745e878ab Various documentation updates. (#13107)
* Various documentation updates.

1) Split out "data management" from "ingestion". Break it into thematic pages.

2) Move "SQL-based ingestion" into the Ingestion category. Adjust content so
   all conceptual content is in concepts.md and all syntax content is in reference.md.
   Shorten the known issues page to the most interesting ones.

3) Add SQL-based ingestion to the ingestion method comparison page. Remove the
   index task, since index_parallel is just as good when maxNumConcurrentSubTasks: 1.

4) Rename various mentions of "Druid console" to "web console".

5) Add additional information to ingestion/partitioning.md.

6) Remove a mention of Tranquility.

7) Remove a note about upgrading to Druid 0.10.1.

8) Remove no-longer-relevant task types from ingestion/tasks.md.

9) Move ingestion/native-batch-firehose.md to the hidden section. It was previously deprecated.

10) Move ingestion/native-batch-simple-task.md to the hidden section. It is still linked in some
    places, but it isn't very useful compared to index_parallel, so it shouldn't take up space
    in the sidebar.

11) Make all br tags self-closing.

12) Certain other cosmetic changes.

13) Update to node-sass 7.

* make travis use node12 for docs

Co-authored-by: Vadim Ogievetsky <vadim@ogievetsky.com>
2022-09-16 22:02:50 -07:00
Vadim Ogievetsky 7c8cfb890f Doc fixes around msq (#13090)
* remove things that do not apply

* fix more things

* pin node to a working version

* fix

* fixes

* known issues tidy up

* revert auto formatting changes

* remove management-uis page which is 100% lies

* don't mention the Coordinator console (that no longer exits)

* goodies

* fix typo
2022-09-16 02:17:34 -07:00
Abhishek Agarwal ae5fc18946 [maven-release-plugin] prepare for next development iteration 2022-09-10 04:55:09 +00:00
Abhishek Agarwal 09991dcf17 [maven-release-plugin] prepare release druid-24.0.0-rc2 2022-09-10 04:54:58 +00:00
Kashif Faraz 618098a1ea
Install bash-static in docker image (#13063) 2022-09-09 08:53:26 -07:00
Abhishek Agarwal a6f5a74650 [maven-release-plugin] prepare for next development iteration 2022-09-08 14:18:57 +00:00
Abhishek Agarwal 2319f10cb6 [maven-release-plugin] prepare release druid-24.0.0-rc1 2022-09-08 14:18:46 +00:00
Gian Merlino 72f0fd0583
Reverting #12659 from 24.0 release (take 3) (#13053)
* Fix conflicts during revert

* Remove filter from web-console

* remove unused const

* fix indent

* In branch: lower coverage requirement for azure-extensions/pom.xml, add subset of CloudObjectInputSourceTest.

Co-authored-by: Abhishek Agarwal <1477457+abhishekagarwal87@users.noreply.github.com>
Co-authored-by: Vadim Ogievetsky <vadim@ogievetsky.com>
2022-09-08 18:40:59 +05:30
Vadim Ogievetsky 3974a4153e
fix bug in /status/properties filtering (#13045) (#13054)
* fix bug in /status/properties filtering

* Refactor tests to use jackson for parsing druid.server.hiddenProperties instead of hacky string modifications

* make javadoc more descriptive using example

* add in a sanity assertion that raw properties keyset size is greater than filtered properties keyset size

Co-authored-by: Lucas Capistrant <capistrant@users.noreply.github.com>
2022-09-07 22:36:12 -07:00
Vadim Ogievetsky 20035022a8
Fix web-console message in MSQ data loader (#12996) (#13047)
* Fix typo in web-console message

* Prettify the changes

Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com>
2022-09-07 13:55:08 -07:00
Vadim Ogievetsky 7f4e034930
more consistent expression error messages (#12995) (#13042)
* more consistent expression error messages

* review stuff

* add NamedFunction for Function, ApplyFunction, and ExprMacro to share common stuff

* fixes

* add expression transform name to transformer failure, better parse_json error messaging

Co-authored-by: Clint Wylie <cwylie@apache.org>
2022-09-07 09:06:31 -07:00
Gian Merlino 033ae233e8 MSQ extension: Fix over-capacity write in ScanQueryFrameProcessor. (#13036)
* MSQ extension: Fix over-capacity write in ScanQueryFrameProcessor.

Frame processors are meant to write only one output frame per cycle.
The ScanQueryFrameProcessor would write two when reading from a channel
if the input frame cursor cycled and then the output frame filled up
while reading from the next frame.

This patch fixes the bug, and adds a test. It also makes some adjustments
to the processor code in order to make it easier to test.

* Add license header.
2022-09-07 19:33:48 +05:30
Vadim Ogievetsky d9607a667b
Add CTA and fix typo (#13009) (#13039)
* Add CTA and fix typo

* resolve hostname better
2022-09-07 19:30:11 +05:30
Vadim Ogievetsky ff24901fda
remove mentions of DruidQueryRel from docs (#13033) (#13038)
* remove mentions of DruidQueryRel

* Update docs/querying/sql-translation.md

Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>

* Update docs/querying/sql-translation.md

Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>

Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>

Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
2022-09-07 17:21:58 +05:30
Victoria Lim eba4bfeb66
Nested columns documentation (#12946) (#13035)
Co-authored-by: Clint Wylie <cjwylie@gmail.com>
Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
Co-authored-by: brian.le <brian.le@imply.io>
(cherry picked from commit 1f69140623)

Co-authored-by: Jill Osborne <jill.osborne@imply.io>
2022-09-06 23:24:35 -07:00
317brian a769458b12 msq: add multi-stage-query docs (#12983)
* msq: add multi-stage-query docs

* add screenshots

add back theta sketches tutoria

change filename

fix filename

fix link

fix headings

* fixes

* fixes

* fix spelling issues and update spell file

* address feedback from karan

* add missing guardrail to known issues

* update blurb

* fix typo

* remove durable storage info

* update titles

* Restore en.json

* Update query view

* address comments from vad

* Update docs/multi-stage-query/msq-known-issues.md

finish sentence

* add apache license to docs

* add apache license to docs

Co-authored-by: Katya Macedo <katya.macedo@imply.io>
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
2022-09-06 23:07:41 +05:30
Abhishek Agarwal bc386601fb Suppress false CVEs (#13026)
* Suppress CVEs

* Add more suppressions
2022-09-06 11:48:09 +05:30
zemin df1e45feda Ease of hidding sensitive properties from /status/proper… (#12950)
* apache#12063 Ease of hidding sensitive properties from /status/properties endpoint

* apache#12063 Ease of hidding sensitive properties from /status/properties endpoint

* apache#12063 Ease of hidding sensitive properties from /status/properties endpoint

using one property for hiding properties, updated the index.md to document hiddenProperties

* apache#12063 Ease of hidding sensitive properties from /status/properties endpoint

Added java docs

* apache#12063 Ease of hidding sensitive properties from /status/properties endpoint

Add "password", "key", "token", "pwd" as default druid.server.hiddenProperties

fixed typo and removed redundant space

Co-authored-by: zemin <zemin.piao@adyen.com>
2022-09-04 15:21:17 +05:30
Vadim Ogievetsky 0ddc9cd3f5
Web console: don't crash if cookies are totally disabled (#13013) (#13018)
* fix local storage detection

* fix numeric input dialog
2022-09-02 11:31:32 -07:00
Vadim Ogievetsky 5d40608e97
Make console e2e tests run in band so as to not hog task slots (#13004) (#13008)
* increase e2e timeline

* get rid of pull deps

* increase post index task timeoout

* boost msq e2e timeout

* run in band
2022-08-31 15:22:46 -07:00
Vadim Ogievetsky da1e8d58ec don't show transform actions on * queries (#13005) 2022-08-31 17:34:49 +05:30
Gian Merlino 3db8967dee
FrameFile: Java 17 compatibility. (#12987) (#13002)
* FrameFile: Java 17 compatibility.

DataSketches Memory.map is not Java 17 compatible, and from discussions
with the team, is challenging to make compatible with 17 while also
retaining compatibility with 8 and 11. So, in this patch, we switch away
from Memory.map and instead use the builtin JDK mmap functionality. Since
it only supports maps up to Integer.MAX_VALUE, we also implement windowing
in FrameFile, such that we can still handle large files.

Other changes:

1) Add two new "map" functions to FileUtils, which we use in this patch.
2) Add a footer checksum to the FrameFile format. Individual frames
   already have checksums, but the footer was missing one.

* Changes for static analysis.

* wip

* Fixes.
2022-08-30 17:18:18 -07:00
Gian Merlino 9bd2cf790e
Fix accounting of bytesAdded in ReadableByteChunksFrameChannel. (#12988) (#13003)
* Fix accounting of bytesAdded in ReadableByteChunksFrameChannel.

Could cause WorkerInputChannelFactory to get into an infinite loop when
reading the footer of a frame file.

* Additional tests.
2022-08-30 14:21:46 -07:00
Vadim Ogievetsky 459a66deaa
fix snapshots for doc links (#13000) 2022-08-30 13:58:46 -07:00
abhagraw 4fa0d08961 Building druid-it-tools and running for travis in it.sh (#12957)
* Building druid-it-tools and running for travis in it.sh

* Addressing comments

* Updating druid-it-image pom to point to correct it-tools

* Updating all it-tools references to druid-it-tools

* Adding dist back to it.sh travis

* Trigger Build

* Disabling batchIndex tests and commenting out user specific code

* Fixing checkstyle and intellij inspection errors

* Replacing tabs with spaces in it.sh

* Enabling old batch index tests with indexer
2022-08-30 12:49:12 +05:30
Clint Wylie caa00aa086
json_value adjustments (#12968) (#12993)
* json_value adjustments
changes:
* native json_value expression now has optional 3rd argument to specify type, which will cast all values to the specified type
* rework how JSON_VALUE is wired up in SQL. Now we are using a custom convertlet to translate JSON_VALUE(... RETURNING type) into dedicated JSON_VALUE_BIGINT, JSON_VALUE_DOUBLE, JSON_VALUE_VARCHAR, JSON_VALUE_ANY instead of using the calcite StandardConvertletTable that wraps JSON_VALUE_ANY in a CAST, so that we preserve the typing of JSON_VALUE to pass down to the native expression as the 3rd argument

* fix json_value_any to be usable by humans too, coverage

* fix bug

* checkstyle

* checkstyle

* review stuff

* validate that options to json_value are the supported options rather than ignore them

* remove more legacy undocumented functions
2022-08-29 18:24:27 -07:00
Gian Merlino 1eff5d4be4 Adjust SQL "cannot plan" error message. (#12903)
Two changes:

1) Restore the text of the SQL query. It was removed in #12897, but
   then it was later pointed out that the text is helpful for end
   users querying Druid through tools that do not show the SQL queries
   that they are making.

2) Adjust wording slightly, from "Cannot build plan for query" to
   "Query not supported". This will be clearer to most users. Generally
   the reason we get these errors is due to unsupported SQL constructs.
2022-08-29 18:33:41 +05:30
wiquan 2f7eae343c [Issue 10331] Fresh Docker install results in "Uh... I have no servers. Not assigning anything... (#12963)
* add env var DRUID_SINGLE_NODE_CONF

* no message

* typo fix

Co-authored-by: Wil Quan <wiquan@appdynamics.com>
2022-08-29 17:46:26 +05:30
Clint Wylie e2f7038485
fix issue with SQL planner and null array constants (#12971) (#12985) 2022-08-29 15:15:04 +05:30
Clint Wylie 1e16a3cc9f
add json function support for paths with negative array indexes (#12972) (#12979) 2022-08-26 17:39:15 -07:00
Karan Kumar c8ab8b20bb
Race in Task report/log streamer (#12931) (#12980)
* Fixing RACE in HTTP remote task Runner

* Changes in the interface

* Updating documentation

* Adding test cases to SwitchingTaskLogStreamer

* Adding more tests
2022-08-26 08:23:43 -07:00
abhagraw e94b865727 Suppressing CVE-2022-25168 - hadoop-common-2.8.5.jar (#12970) 2022-08-26 11:12:42 +00:00
Jill Osborne ca2b540693
Updated docs (#12978) 2022-08-26 12:38:40 +05:30
Abhishek Agarwal eb3a12ac7d Remove helm charts since IP clearance is not resolved 2022-08-26 07:06:00 +00:00
Vadim Ogievetsky 2af68b6edc grab warnings from correct key + test (#12977) 2022-08-25 22:55:22 -07:00
Lee Surprenant 4937017e6f fix broken link in web-console (#12976)
In 0.23.0, the info-button links to https://druid.apache.org/docs/0.23.0/ingestion/flatten-json.html which is a 404

If I got the spot right, this should now link to https://druid.apache.org/docs/[VERSION]/ingestion/data-formats.html#flattenspec
2022-08-25 22:55:22 -07:00
Vadim Ogievetsky 52dfc2e91c Web console: fix pagination, add error delimiters (#12969)
* fix pagination, add error delimiters

* reword debug message
2022-08-25 08:33:19 -07:00
Abhishek Agarwal 8b321eae14 Update version to 24.0.0 2022-08-25 09:55:55 +00:00