Skip to content

Web console: better detection for arrays containing objects#13077

Merged
vogievetsky merged 2 commits intoapache:masterfrom
vogievetsky:detect_arrays
Sep 13, 2022
Merged

Web console: better detection for arrays containing objects#13077
vogievetsky merged 2 commits intoapache:masterfrom
vogievetsky:detect_arrays

Conversation

@vogievetsky
Copy link
Copy Markdown
Contributor

Right now, if you ingest data with a column that has arrays with nested objects in them the console will generate a silly seed query (it erroneously thinks that array = mv).

Example data:

{"name":"Alice","likes":[{"type":"Dogs"},{"type":"JavaScript"}]}
{"name":"Bob","likes":[{"type":"Cats"},{"type":"Java"}]}

Before:

image

After:

image

@vogievetsky vogievetsky added Bug Area - Web Console Area - Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Sep 12, 2022
@vogievetsky vogievetsky merged commit 08d6aca into apache:master Sep 13, 2022
@vogievetsky vogievetsky deleted the detect_arrays branch September 13, 2022 02:28
vogievetsky added a commit to vogievetsky/druid that referenced this pull request Sep 26, 2022
…3077)

* better detection for arrays containing objects

* include boolean also
abhishekagarwal87 pushed a commit that referenced this pull request Sep 28, 2022
* 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
@abhishekagarwal87 abhishekagarwal87 added this to the 24.0.1 milestone Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Area - Web Console Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants