Skip to content

Commit

Permalink
Web console: add explore view (apache#14602)
Browse files Browse the repository at this point in the history
This PR adds a simple, stateless, SQL backed, data exploration view to the web console. The idea is to let users explore data in Druid with point-and-click interaction and visualizations (instead of writing SQL and looking at a table). This can provide faster time-to-value for a user new to Druid and can allow a Druid veteran to quickly chart some data that they care about.
  • Loading branch information
vogievetsky authored and sergioferragut committed Jul 21, 2023
1 parent 834add1 commit 961124d
Show file tree
Hide file tree
Showing 62 changed files with 5,711 additions and 2 deletions.
49 changes: 48 additions & 1 deletion licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5367,6 +5367,24 @@ version: 0.20.5

---

name: "@druid-toolkit/visuals-core"
license_category: binary
module: web-console
license_name: Apache License version 2.0
copyright: Imply Data
version: 0.3.3

---

name: "@druid-toolkit/visuals-react"
license_category: binary
module: web-console
license_name: Apache License version 2.0
copyright: Imply Data
version: 0.3.3

---

name: "@emotion/cache"
license_category: binary
module: web-console
Expand Down Expand Up @@ -5935,6 +5953,15 @@ license_file_path: licenses/bin/dot-case.MIT

---

name: "echarts"
license_category: binary
module: web-console
license_name: Apache License version 2.0
copyright: Apache Software Foundation
version: 5.4.2

---

name: "emotion"
license_category: binary
module: web-console
Expand Down Expand Up @@ -6809,7 +6836,7 @@ license_category: binary
module: web-console
license_name: Zero-Clause BSD
copyright: Microsoft Corp.
version: 2.5.3
version: 2.3.0
license_file_path: licenses/bin/tslib.0BSD

---
Expand Down Expand Up @@ -6844,6 +6871,16 @@ license_file_path: licenses/bin/upper-case.MIT

---

name: "use-resize-observer"
license_category: binary
module: web-console
license_name: MIT License
copyright: Viktor Hubert
version: 9.1.0
license_file_path: licenses/bin/use-resize-observer.MIT

---

name: "use-sync-external-store"
license_category: binary
module: web-console
Expand Down Expand Up @@ -6884,6 +6921,16 @@ license_file_path: licenses/bin/yaml.ISC

---

name: "zrender"
license_category: binary
module: web-console
license_name: BSD-3-Clause License
copyright: Baidu Inc.
version: 5.4.3
license_file_path: licenses/bin/zrender.BSD3

---

name: "zustand"
license_category: binary
module: web-console
Expand Down
21 changes: 21 additions & 0 deletions licenses/bin/use-resize-observer.MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright 2018 Viktor Hubert <rpgmorpheus@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
29 changes: 29 additions & 0 deletions licenses/bin/zrender.BSD3
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2017, Baidu Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
126 changes: 126 additions & 0 deletions web-console/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions web-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
"@blueprintjs/icons": "^4.16.0",
"@blueprintjs/popover2": "^1.14.9",
"@druid-toolkit/query": "^0.20.5",
"@druid-toolkit/visuals-core": "^0.3.3",
"@druid-toolkit/visuals-react": "^0.3.3",
"ace-builds": "~1.4.14",
"axios": "^0.26.1",
"classnames": "^2.2.6",
Expand All @@ -78,6 +80,7 @@
"d3-axis": "^2.1.0",
"d3-scale": "^3.3.0",
"d3-selection": "^2.0.0",
"echarts": "^5.4.1",
"file-saver": "^2.0.2",
"follow-redirects": "^1.14.7",
"fontsource-open-sans": "^3.0.9",
Expand Down
1 change: 1 addition & 0 deletions web-console/script/licenses
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ checker.init(
if (name === 'asap') publisher = 'Contributors';
if (name === 'diff-match-patch') publisher = 'Google';
if (name === 'esutils') publisher = 'Yusuke Suzuki'; // https://github.com/estools/esutils#license
if (name === 'echarts') publisher = 'Apache Software Foundation';
}

if (!publisher) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ exports[`HeaderBar matches snapshot 1`] = `
shouldDismissPopover={true}
text="Lookups"
/>
<Blueprint4.MenuDivider />
<Blueprint4.MenuItem
active={false}
disabled={false}
href="#explore"
icon="compass"
label="(experimental)"
multiline={false}
popoverProps={Object {}}
selected={false}
shouldDismissPopover={true}
text="Explore"
/>
</Blueprint4.Menu>
}
defaultIsOpen={false}
Expand Down
Loading

0 comments on commit 961124d

Please sign in to comment.