You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each connector might have a different way of handling drops and column rename, we use
EXCEPT CORRESPONDING clause to ensure the results of the both the views and tables are same.
Additionally fixed error message when dropping a column.
assertQueryReturnsEmptyResult("SELECT * FROM " + view.getName() + " EXCEPT CORRESPONDING SELECT * FROM " + table.getName());
1020
1020
1021
1021
if (hasBehavior(SUPPORTS_RENAME_COLUMN)) {
1022
1022
assertUpdate("ALTER TABLE %s RENAME COLUMN column_to_be_renamed TO renamed_column".formatted(table.getName()));
1023
1023
assertQueryFails(
1024
1024
"SELECT * FROM %s".formatted(view.getName()),
1025
1025
".*is stale or in invalid state: column \\[renamed_column] of type bigint projected from query view at position 2 has a different name from column \\[column_to_be_renamed] of type bigint stored in view definition");
0 commit comments