Skip to content

Commit

Permalink
Update testSnowflakePostProcessor.pure
Browse files Browse the repository at this point in the history
  • Loading branch information
PrateekGarg-gs authored Aug 28, 2023
1 parent 55d1e42 commit 79cd676
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function <<test.Test>> meta::relational::tests::postProcessor::snowflake::testPo
meta::relational::extension::relationalExtensions()
).sqlQueries->at(0)->cast(@SelectSQLQuery)->meta::relational::functions::sqlQueryToString::sqlQueryToString(DatabaseType.Snowflake, '', [], meta::relational::extension::relationalExtensions());

assertEquals('select upper("producttable_0".NAME) as "ProductName", sum("root".quantity) as "QuantitySum" from tradeTable as "root" left outer join productSchema.productTable as "producttable_0" on ("root".prodId = "producttable_0".ID) group by upper("producttable_0".NAME) having upper("producttable_0".NAME) in (\'ABC\', \'DEF\') order by "ProductName"', $result);
assertEquals('select upper("producttable_0".NAME) as "ProductName", sum("root".quantity) as "QuantitySum" from tradeTable as "root" left outer join productSchema.productTable as "producttable_0" on ("root".prodId = "producttable_0".ID) group by "ProductName" having upper("producttable_0".NAME) in (\'ABC\', \'DEF\') order by "ProductName"', $result);
}

function <<test.Test>> meta::relational::tests::postProcessor::snowflake::testPostProcessingOfGroupByAndHavingOpCachedTransform():Boolean[1]
Expand All @@ -79,5 +79,5 @@ function <<test.Test>> meta::relational::tests::postProcessor::snowflake::testPo
meta::relational::extension::relationalExtensions()
).sqlQueries->at(0)->cast(@SelectSQLQuery)->meta::relational::functions::sqlQueryToString::sqlQueryToString(DatabaseType.Snowflake, '', [], meta::relational::extension::relationalExtensions());

assertEquals('select upper("producttable_0".NAME) as "ProductName", sum("root".quantity) as "QuantitySum" from tradeTable as "root" left outer join productSchema.productTable as "producttable_0" on ("root".prodId = "producttable_0".ID) group by upper("producttable_0".NAME) having upper("producttable_0".NAME) in (\'ABC\', \'DEF\') order by "ProductName"', $result);
assertEquals('select upper("producttable_0".NAME) as "ProductName", sum("root".quantity) as "QuantitySum" from tradeTable as "root" left outer join productSchema.productTable as "producttable_0" on ("root".prodId = "producttable_0".ID) group by "ProductName" having upper("producttable_0".NAME) in (\'ABC\', \'DEF\') order by "ProductName"', $result);
}

0 comments on commit 79cd676

Please sign in to comment.