-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MIN and MAX aggregate support for MONEY datatype (#3410)
This commit addresses the issue where SELECT...INTO with MIN and MAX aggregations on MONEY columns lost type information. The fix implements proper type preservation for these aggregate functions when used with MONEY datatypes. Key changes: Added support for MIN(money) -> money Added support for MAX(money) -> money Ensures type consistency in SELECT...INTO operations Task: BABEL-5479 Signed-off-by: Roshan Kanwar <[email protected]>
- Loading branch information
1 parent
8f23703
commit cd18f11
Showing
12 changed files
with
1,182 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
DROP PROCEDURE IF EXISTS get_column_info_p1; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable1; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable2; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable3; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable4; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable5; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable6; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable7; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable8; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable9; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTable10; | ||
GO | ||
|
||
DROP TABLE IF EXISTS EmptyMoneyTable; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableEmpty; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ExtremeMoneyTable; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableExtreme; | ||
GO | ||
|
||
DROP TABLE IF EXISTS MixedNullMoneyTable; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableMixedNull; | ||
GO | ||
|
||
DROP TABLE IF EXISTS OverflowMoneyTable; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableOverflow; | ||
GO | ||
|
||
DROP TABLE IF EXISTS NonMoneyTable; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableNonMoney; | ||
GO | ||
|
||
-- Clean up Check Constraint Test | ||
DROP TABLE IF EXISTS ResultTableCheck; | ||
GO | ||
|
||
DROP TABLE IF EXISTS CheckConstraintMoneyTable; | ||
GO | ||
|
||
-- Clean up Complex Dependent Objects Tests | ||
DROP TABLE IF EXISTS ResultTableView; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableFunction; | ||
GO | ||
|
||
DROP VIEW IF EXISTS MoneyView; | ||
GO | ||
|
||
DROP FUNCTION IF EXISTS GetTotalMoney; | ||
GO | ||
|
||
DROP PROCEDURE IF EXISTS InsertMoney; | ||
GO | ||
|
||
-- Clean up Indexed View Test | ||
DROP TABLE IF EXISTS ResultTableIndexedView; | ||
GO | ||
|
||
DROP VIEW IF EXISTS IndexedMoneyView; | ||
GO | ||
|
||
DROP TABLE IF EXISTS IndexedViewBaseTable; | ||
GO | ||
|
||
DROP TABLE IF EXISTS CurrencyMoneyTable; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableCurrency1; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableCurrency2; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableCurrency3; | ||
GO | ||
|
||
DROP TABLE IF EXISTS ResultTableCurrency4; | ||
GO | ||
|
||
DROP TABLE IF EXISTS TestMoneyTable; | ||
GO |
Oops, something went wrong.