@@ -173,6 +173,25 @@ public class PlanTranslatorContext {
173173
174174 private final Set <SlotId > virtualColumnIds = Sets .newHashSet ();
175175
176+ /**
177+ * Constructor for testing purposes with default values.
178+ */
179+ @ VisibleForTesting
180+ public PlanTranslatorContext () {
181+ this (Config .be_exec_version );
182+ }
183+
184+ @ VisibleForTesting
185+ PlanTranslatorContext (int beExecVersion ) {
186+ this .connectContext = null ;
187+ this .statementContext = new StatementContext ();
188+ this .statementContext .initializeBeExecVersion (beExecVersion );
189+ this .scanContext = ScanContext .builder ().beExecVersion (beExecVersion ).build ();
190+ this .translator = null ;
191+ this .topnFilterContext = new TopnFilterContext ();
192+ this .descTable = new DescriptorTable ();
193+ }
194+
176195 /** PlanTranslatorContext */
177196 public PlanTranslatorContext (CascadesContext ctx ) {
178197 this (ctx , new DescriptorTable ());
@@ -207,25 +226,6 @@ public Map<String, TS3Resource> getS3Resources() {
207226 return resources ;
208227 }
209228
210- /**
211- * Constructor for testing purposes with default values.
212- */
213- @ VisibleForTesting
214- public PlanTranslatorContext () {
215- this (Config .be_exec_version );
216- }
217-
218- @ VisibleForTesting
219- PlanTranslatorContext (int beExecVersion ) {
220- this .connectContext = null ;
221- this .statementContext = new StatementContext ();
222- this .statementContext .initializeBeExecVersion (beExecVersion );
223- this .scanContext = ScanContext .builder ().beExecVersion (beExecVersion ).build ();
224- this .translator = null ;
225- this .topnFilterContext = new TopnFilterContext ();
226- this .descTable = new DescriptorTable ();
227- }
228-
229229 public int getBeExecVersion () {
230230 return statementContext .getBeExecVersion ();
231231 }
0 commit comments