File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
core/trino-main/src/main/java/io/trino/server Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 7474import java .nio .file .Paths ;
7575import java .util .Collection ;
7676import java .util .List ;
77+ import java .util .Locale ;
7778import java .util .Optional ;
7879import java .util .Set ;
7980
@@ -95,6 +96,10 @@ public final void start(String trinoVersion)
9596
9697 private void doStart (String trinoVersion )
9798 {
99+ // Trino server behavior does not depend on locale settings.
100+ // Use en_US as this is what Trino is tested with.
101+ Locale .setDefault (Locale .US );
102+
98103 long startTime = System .nanoTime ();
99104 verifyJvmRequirements ();
100105 verifySystemTimeIsReasonable ();
Original file line number Diff line number Diff line change 126126import java .time .Instant ;
127127import java .util .HashMap ;
128128import java .util .List ;
129+ import java .util .Locale ;
129130import java .util .Map ;
130131import java .util .Optional ;
131132import java .util .concurrent .CountDownLatch ;
@@ -152,6 +153,10 @@ public class TestingTrinoServer
152153 Logging logging = Logging .initialize ();
153154 logging .setLevel ("io.trino.event.QueryMonitor" , Level .ERROR );
154155 logging .setLevel ("org.eclipse.jetty" , Level .ERROR );
156+
157+ // Trino server behavior does not depend on locale settings.
158+ // Use en_US as this is what Trino is tested with.
159+ Locale .setDefault (Locale .US );
155160 }
156161
157162 public static final String SESSION_START_TIME_PROPERTY = "session_start_time" ;
You can’t perform that action at this time.
0 commit comments