forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BABEL: CREATE VIEW fails in UNION if column datatypes are from differ…
…ent categories during MVU (yugabyte#9) T-SQL has certain different rules and hooks for views compared to PG and these rules and hooks are only applicable in T-SQL dialect, that's why MVU fails while restoring T-SQL views since restore happens in PG dialect. Fix this by allowing T-SQL specific rules and hooks if babelfishpg_tsql.dump_restore GUC is set to on. Following three hooks will be allowed: 1. determine_datatype_precedence_hook 2. find_coercion_pathway_hook 3. func_select_candidate_hook Task: BABEL-3221 Signed-off-by: Rishabh Tanwar <ritanwar@amazon.com> (cherry picked from commit 091d490b2c965ac958833dee163b5ab399ea8702)
- Loading branch information
1 parent
b4f10fa
commit 0f040b5
Showing
2 changed files
with
14 additions
and
5 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