Skip to content

Commit

Permalink
Enable phased execution policy by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Jan 11, 2022
1 parent cb40d37 commit f15c978
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public void testSessionProperties()
.extractingByKeys("hive.temporary_staging_directory_path", "execution_policy")
.containsExactly("/tmp", "legacy-phased");
assertThat(listSession(connection)).containsAll(ImmutableSet.of(
"execution_policy|legacy-phased|all-at-once",
"execution_policy|legacy-phased|phased",
"hive.temporary_staging_directory_path|/tmp|/tmp/presto-${USER}"));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class QueryManagerConfig
private Duration remoteTaskMaxErrorDuration = new Duration(5, TimeUnit.MINUTES);
private int remoteTaskMaxCallbackThreads = 1000;

private String queryExecutionPolicy = "all-at-once";
private String queryExecutionPolicy = "phased";
private Duration queryMaxRunTime = new Duration(100, TimeUnit.DAYS);
private Duration queryMaxExecutionTime = new Duration(100, TimeUnit.DAYS);
private Duration queryMaxPlanningTime = new Duration(10, TimeUnit.MINUTES);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void testDefaults()
.setRemoteTaskMinErrorDuration(new Duration(5, MINUTES))
.setRemoteTaskMaxErrorDuration(new Duration(5, MINUTES))
.setRemoteTaskMaxCallbackThreads(1000)
.setQueryExecutionPolicy("all-at-once")
.setQueryExecutionPolicy("phased")
.setQueryMaxRunTime(new Duration(100, DAYS))
.setQueryMaxExecutionTime(new Duration(100, DAYS))
.setQueryMaxPlanningTime(new Duration(10, MINUTES))
Expand Down

0 comments on commit f15c978

Please sign in to comment.