Skip to content

Commit 8d6bb16

Browse files
committed
fix test
1 parent fd6220f commit 8d6bb16

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

packages/cubejs-schema-compiler/test/integration/postgres/views-join-order-2.test.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ cube('A', {
4848
dimensions: {
4949
id: {
5050
sql: \`id\`,
51-
type: \`string\`,
51+
type: \`number\`,
5252
primaryKey: true,
5353
},
5454
name: {
@@ -60,7 +60,7 @@ cube('A', {
6060
6161
cube('B', {
6262
sql: \`
63-
SELECT 2 id, 'b'::text as "name"\`,
63+
SELECT 2 id, 1 fk, 'b'::text as "name"\`,
6464
joins: {
6565
A: {
6666
relationship: \`many_to_one\`,
@@ -75,7 +75,7 @@ cube('B', {
7575
dimensions: {
7676
id: {
7777
sql: \`id\`,
78-
type: \`string\`,
78+
type: \`number\`,
7979
primaryKey: true,
8080
},
8181
name: {
@@ -84,7 +84,7 @@ cube('B', {
8484
},
8585
fk: {
8686
sql: \`fk\`,
87-
type: \`string\`,
87+
type: \`number\`,
8888
},
8989
},
9090
});
@@ -95,7 +95,7 @@ cube('E', {
9595
dimensions: {
9696
id: {
9797
sql: \`id\`,
98-
type: \`string\`,
98+
type: \`number\`,
9999
primaryKey: true,
100100
},
101101
name: {
@@ -125,7 +125,7 @@ cube('D', {
125125
dimensions: {
126126
id: {
127127
sql: \`id\`,
128-
type: \`string\`,
128+
type: \`number\`,
129129
primaryKey: true,
130130
},
131131
name: {
@@ -134,11 +134,15 @@ cube('D', {
134134
},
135135
fk: {
136136
sql: \`fk\`,
137-
type: \`string\`,
137+
type: \`number\`,
138138
},
139139
bFk: {
140140
sql: \`b_fk\`,
141-
type: \`string\`,
141+
type: \`number\`,
142+
},
143+
eFk: {
144+
sql: \`e_fk\`,
145+
type: \`number\`,
142146
},
143147
},
144148
});

0 commit comments

Comments
 (0)