Commit a2a6fc9
test: add joined cube reference in mask SQL test cases
Add sc_joined_mask_test cube with a mask.sql that references orders.id
from a joined cube (orders). The mask replaces the order_id dimension
with the joined orders.id — since the join condition equates them, the
masked and unmasked values should match, verifying the join is correctly
resolved when triggered by mask SQL.
Tests added for SQL API and REST API, both non-Tesseract and Tesseract.
Co-authored-by: Pavel Tiunov <pavel.tiunov@gmail.com>1 parent 62f4bcd commit a2a6fc9
2 files changed
Lines changed: 98 additions & 0 deletions
File tree
- packages/cubejs-testing
- birdbox-fixtures/rbac/model/cubes
- test
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
147 | 195 | | |
148 | 196 | | |
149 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
858 | 870 | | |
859 | 871 | | |
860 | 872 | | |
| |||
958 | 970 | | |
959 | 971 | | |
960 | 972 | | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
961 | 987 | | |
962 | 988 | | |
963 | 989 | | |
| |||
1132 | 1158 | | |
1133 | 1159 | | |
1134 | 1160 | | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
1135 | 1171 | | |
1136 | 1172 | | |
1137 | 1173 | | |
| |||
1195 | 1231 | | |
1196 | 1232 | | |
1197 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1198 | 1248 | | |
1199 | 1249 | | |
1200 | 1250 | | |
| |||
0 commit comments