Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Sep 22, 2023
1 parent 13ba12c commit 5a6e052
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions test/integration/testHTAP.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,45 +28,44 @@ if(process.env.CLOUD_PROVIDER === 'AWS') {

after(async () => {
configureLogger('ERROR');
await testUtil.dropTablesIgnoringErrorsAsync(["t1","t2","t3"]);
await testUtil.destroyConnectionAsync(connection);
});
const querySet = [
{
sqlTexts:[
sqlTexts: [
'create or replace database db1',
'create or replace hybrid table t1 (a int primary key, b int)',
'insert into t1 values (1, 2), (2, 3), (3, 4)',
'insert into t1 values (1, 2), (2, 3), (3, 4)'
],
QccSize:2,
QccSize: 2,
},
{
sqlTexts:[
sqlTexts: [
'create or replace database db2',
'create or replace table t2 (a int primary key, b int)',
'insert into t2 values (1, 2), (2, 3), (3, 4)',

'create or replace hybrid table t2 (a int primary key, b int)',
'insert into t2 values (1, 2), (2, 3), (3, 4)'
],
QccSize:2,
QccSize: 3,
},
{
sqlTexts:[
sqlTexts: [
'create or replace database db3',
'create or replace table t3 (a int primary key, b int)',
'insert into t3 values (1, 2), (2, 3), (3, 4)',
'create or replace hybrid table t3 (a int primary key, b int)',
'insert into t3 values (1, 2), (2, 3), (3, 4)'
],
QccSize:2,
QccSize: 4,
},
{
sqlTexts:[
sqlTexts: [
'select * from db1.public.t1 x, db2.public.t2 y, db3.public.t3 z where x.a = y.a and y.a = z.a;',
'select * from db1.public.t1 x, db2.public.t2 y where x.a = y.a;',
'select * from db2.public.t2 y, db3.public.t3 z where y.a = z.a;'
],
QccSize:4,
QccSize: 4,
},
];


function createQueryTest () {
const testingSet = [];
let testingfunction;
Expand Down

0 comments on commit 5a6e052

Please sign in to comment.