-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BugFix] Unable to set storage_cooldown_time to maximum when creating MaterializedView. #52079
Conversation
… MaterializedView. Signed-off-by: edwinhzhang <[email protected]>
2bf26ff
to
265e45c
Compare
Quality Gate passedIssues Measures |
@@ -1456,8 +1455,7 @@ public static Map<String, String> getPartitionProperties(MaterializedView materi | |||
partitionProperties.put("storage_medium", materializedView.getStorageMedium()); | |||
String storageCooldownTime = | |||
materializedView.getTableProperty().getProperties().get("storage_cooldown_time"); | |||
if (storageCooldownTime != null | |||
&& !storageCooldownTime.equals(String.valueOf(DataProperty.MAX_COOLDOWN_TIME_MS))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAX_COOLDOWN_TIME_MS
(9999-12-31 23:59:59) is an invalid cool down time, why needs to update it?
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@@ -1456,8 +1455,7 @@ public static Map<String, String> getPartitionProperties(MaterializedView materi | |||
partitionProperties.put("storage_medium", materializedView.getStorageMedium()); | |||
String storageCooldownTime = | |||
materializedView.getTableProperty().getProperties().get("storage_cooldown_time"); | |||
if (storageCooldownTime != null | |||
&& !storageCooldownTime.equals(String.valueOf(DataProperty.MAX_COOLDOWN_TIME_MS))) { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 1 / 1 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
… MaterializedView. (#52079) Signed-off-by: edwinhzhang <[email protected]> (cherry picked from commit 01bf895) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MvUtils.java # fe/fe-core/src/test/java/com/starrocks/catalog/MaterializedViewTest.java
… MaterializedView. (#52079) Signed-off-by: edwinhzhang <[email protected]> (cherry picked from commit 01bf895)
… MaterializedView. (#52079) Signed-off-by: edwinhzhang <[email protected]> (cherry picked from commit 01bf895) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MvUtils.java # fe/fe-core/src/test/java/com/starrocks/catalog/MaterializedViewTest.java
Why I'm doing:
What I'm doing:
Fixes #52082
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: