Commit e46c9dd
authored
[Feature] Add StarRocks Driver Support (#8454)
* only olap connector(not incloud model)
* fix : message "not available for dialect 'starrocks'" & starrocks icon
* feat(starrocks): implement histogram and timeseries support
- Add StarRocks support for ColumnRugHistogram with generate_series()
- Add StarRocks support for ColumnNumericHistogram (FD & Diagnostic methods)
- Add CTE-based ColumnTimeseries for StarRocks (no TEMP TABLE required)
- Add helper functions: rangeNumbersEnd(), isNonNullFinite() for StarRocks
- Handle reserved keywords (values, range) with backtick escaping
* feat(starrocks): add support for resolving timestamps in StarRocks dialect
* feat(starrocks): enhance StarRocks connector with improved context handling, connection timeouts, and error messages
* feat(starrocks): add StarRocks form and error handling to AddDataForm
* Update docs
* fix: update code based on PR review feedback
- addressed multiple review comments
- cleaned up import and minor issues
* fix: apply fixes from PR comments
* fix: resolve build errors
- Remove unused 'strings' import from starrocks.go
- Fix undefined variable 't' in olap.go StarRocks case
- Update date_trunc comment to reference validation location
* fix: update reserved keyword handling and SQL name sanitization for StarRocks dialect
* fix: improve dry run handling in Query method and simplify SQL min query
* fix: correct safeName call in Druid maxSQL query
* fix: use equality check instead of Before for StarRocks time range bins
* fix: resolve build errors and metrics context propagation in Data Explorer
- Fix build compilation errors
- Ensure selected catalog (Database), schema (DatabaseSchema), and table
are properly propagated when creating metrics from Data Explorer
* change test code and fix on AddStarRocksFrom
* Apply minor fixes from code review comments
* Refactor: removed unused code as suggested by Git CI
* fix: Add only for the StarRocks compatibility by executor part
* fix change c.getDB to c.db
* fix: simplify database connection retrieval in StarRocks driver
* fix: update column handling for StarRocks compatibility in numeric and rug histograms + build check
* feat: enhance error handling and form structure in AddStarRocksForm component
* fix the failing checks.
* fix the failing checks 2
* fix : npx prettier check
* [Fix] avoid creating a separate AddStarRocksForm
* [Enhancement] Limit StarRocks Frontend until integration is supported + Fix external catalog information schema check
* [Enhancement] Restrict changes to Backend components only (StarRocks)
* fix: format OLAP_DRIVERS_WITHOUT_MODELING array for consistency
* [Enhancement] Handle StarRocks icon in a more general way
* fix: Prettier checks1 parent d5259a4 commit e46c9dd
File tree
26 files changed
+1885
-71
lines changed- cli/cmd/runtime
- docs/docs/build/connectors/olap
- runtime
- drivers
- starrocks
- metricsview/executor
- queries
- web-common/src
- components/icons/connectors
- features
- connectors
- sources/modal
26 files changed
+1885
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
| |||
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| 227 | + | |
| 228 | + | |
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
| |||
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
254 | | - | |
255 | | - | |
| 257 | + | |
| 258 | + | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
| |||
297 | 300 | | |
298 | 301 | | |
299 | 302 | | |
300 | | - | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
473 | 477 | | |
474 | 478 | | |
475 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
476 | 484 | | |
477 | 485 | | |
478 | 486 | | |
| |||
584 | 592 | | |
585 | 593 | | |
586 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
587 | 599 | | |
588 | 600 | | |
589 | 601 | | |
| |||
596 | 608 | | |
597 | 609 | | |
598 | 610 | | |
599 | | - | |
| 611 | + | |
600 | 612 | | |
601 | 613 | | |
602 | 614 | | |
| |||
607 | 619 | | |
608 | 620 | | |
609 | 621 | | |
610 | | - | |
| 622 | + | |
611 | 623 | | |
612 | 624 | | |
613 | 625 | | |
| |||
655 | 667 | | |
656 | 668 | | |
657 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
658 | 682 | | |
659 | 683 | | |
660 | 684 | | |
| |||
852 | 876 | | |
853 | 877 | | |
854 | 878 | | |
| 879 | + | |
| 880 | + | |
855 | 881 | | |
856 | 882 | | |
857 | 883 | | |
| |||
0 commit comments