@@ -2152,6 +2152,60 @@ export function testQueries(type: string, { includeIncrementalSchemaSuite, exten
21522152 expect ( response . rawData ( ) ) . toMatchSnapshot ( ) ;
21532153 } ) ;
21542154
2155+ execute ( 'querying SwitchSourceTest: full cross join' , async ( ) => {
2156+ const response = await client . load ( {
2157+ dimensions : [
2158+ "SwitchSourceTest.city"
2159+ ] ,
2160+ measures : [
2161+ 'SwitchSourceTest.totalSales' ,
2162+ ] ,
2163+ timeDimensions : [ {
2164+ dimension : 'SwitchSourceTest.orderDate' ,
2165+ granularity : 'month' ,
2166+ dateRange : [ '2020-01-01' , '2020-04-01' ] ,
2167+ } ] ,
2168+ order : {
2169+ 'SwitchSourceTest.orderDate' : 'asc' ,
2170+ 'SwitchSourceTest.city' : 'asc'
2171+ }
2172+ } ) ;
2173+ expect ( response . rawData ( ) ) . toMatchSnapshot ( ) ;
2174+ } ) ;
2175+
2176+ execute ( 'querying SwitchSourceTest: filter by switch dimensions' , async ( ) => {
2177+ const response = await client . load ( {
2178+ dimensions : [
2179+ "SwitchSourceTest.city"
2180+ ] ,
2181+ measures : [
2182+ 'SwitchSourceTest.totalSales' ,
2183+ ] ,
2184+ filters : [
2185+ {
2186+ values : [ 'com' ] ,
2187+ member : 'SwitchSourceTest.source' ,
2188+ operator : 'equals'
2189+ } ,
2190+ {
2191+ values : [ 'curr_a' ] ,
2192+ member : 'SwitchSourceTest.curr' ,
2193+ operator : 'equals'
2194+ }
2195+ ] ,
2196+ timeDimensions : [ {
2197+ dimension : 'SwitchSourceTest.orderDate' ,
2198+ granularity : 'month' ,
2199+ dateRange : [ '2020-01-01' , '2020-04-01' ] ,
2200+ } ] ,
2201+ order : {
2202+ 'SwitchSourceTest.orderDate' : 'asc' ,
2203+ 'SwitchSourceTest.city' : 'asc'
2204+ }
2205+ } ) ;
2206+ expect ( response . rawData ( ) ) . toMatchSnapshot ( ) ;
2207+ } ) ;
2208+
21552209 if ( includeIncrementalSchemaSuite ) {
21562210 describe ( `Incremental schema loading with @cubejs-backend/${ type } -driver` , ( ) => {
21572211 incrementalSchemaLoadingSuite ( execute , ( ) => driver , tables ) ;
0 commit comments