Commit e376c3c
committed
MSQ: Use VSF, give stages control over inputs.
This patch integrates MSQ with virtual storage. It also refactors how MSQ
reads inputs to give stages more control over how inputs are read and merged.
In particular, stages are now able to fully control merging logic.
The main changes:
1) Integrate with virtual storage: merge the two DataSegmentProvider impls
(Dart and Task) into DataSegmentProviderImpl that relies on SegmentManager.
2) Give stages control over input merging: rework InputSliceReader to return
ReadablePartitions directly, without embedding any merging logic. Break out
StandardPartitionReader as a separate class.
Other changes:
1) Move ReadableInput to the querykit package. It is no longer specific to the
MSQ framework.
2) Remove StandardStageProcessor, refactoring dependent code to not require it.
3) Remove ExternalColumnSelectorFactory wrapper. Type casting is now handled
directly by RowBasedColumnSelectorFactory.
4) Include full query context in worker context, rather than just a subset.
Includes apache#18871.1 parent bd986b4 commit e376c3c
File tree
109 files changed
+2325
-2482
lines changed- indexing-service/src/main/java/org/apache/druid/indexing/common
- multi-stage-query/src
- main/java/org/apache/druid/msq
- dart
- guice
- worker
- exec
- std
- indexing
- processor
- input
- external
- inline
- lookup
- stage
- table
- querykit
- common
- groupby
- results
- scan
- shuffle
- input
- output
- util
- test
- java/org/apache/druid/msq
- exec
- indexing/error
- input/table
- querykit
- common
- results
- scan
- sql
- test
- resources
- processing/src
- main/java/org/apache/druid
- frame/processor
- segment
- loading
- test/java/org/apache/druid/segment
- server/src
- main/java/org/apache/druid/segment/loading
- test/java/org/apache/druid
- client
- segment/loading
- server
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
109 files changed
+2325
-2482
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| 60 | + | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 108 | | |
113 | 109 | | |
114 | 110 | | |
| |||
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
Lines changed: 0 additions & 114 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
multi-stage-query/src/main/java/org/apache/druid/msq/dart/worker/DartWorkerContextFactoryImpl.java
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | | - | |
153 | 151 | | |
154 | 152 | | |
155 | 153 | | |
| |||
2797 | 2795 | | |
2798 | 2796 | | |
2799 | 2797 | | |
2800 | | - | |
| 2798 | + | |
2801 | 2799 | | |
2802 | 2800 | | |
2803 | | - | |
| 2801 | + | |
2804 | 2802 | | |
2805 | | - | |
2806 | 2803 | | |
2807 | 2804 | | |
2808 | | - | |
2809 | 2805 | | |
2810 | 2806 | | |
2811 | | - | |
| 2807 | + | |
| 2808 | + | |
2812 | 2809 | | |
2813 | 2810 | | |
2814 | 2811 | | |
2815 | 2812 | | |
2816 | 2813 | | |
2817 | 2814 | | |
2818 | 2815 | | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
2822 | | - | |
2823 | | - | |
2824 | | - | |
| 2816 | + | |
2825 | 2817 | | |
2826 | 2818 | | |
2827 | 2819 | | |
| |||
2852 | 2844 | | |
2853 | 2845 | | |
2854 | 2846 | | |
2855 | | - | |
| 2847 | + | |
2856 | 2848 | | |
2857 | 2849 | | |
2858 | 2850 | | |
| |||
Lines changed: 88 additions & 0 deletions
| 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 | + | |
0 commit comments