@@ -141,7 +141,7 @@ public void testStrictAndLaxPathTyping()
141
141
TestFixture strictFixture = new TestFixture (FOO_BAR_COLUMNS );
142
142
strictFixture .withSerdeProperty (STRICT_PATH_TYPING_PROPERTY , "true" );
143
143
144
- Assertions .assertThrows (TrinoException .class , () ->
144
+ Assertions .assertThrows (RuntimeException .class , () ->
145
145
strictFixture .assertRowCount ("37 null.timestamp []" , 3 ));
146
146
}
147
147
@@ -218,23 +218,6 @@ public void testPageSourceTelemetryCompressed()
218
218
Assertions .assertTrue (pageSource .getReadTimeNanos () > 0 );
219
219
}
220
220
221
- @ Test
222
- public void testNativeTrinoDisabled ()
223
- throws IOException
224
- {
225
- TestFixture fixture = new TestFixture (FOO_BAR_COLUMNS )
226
- .withNativeIonDisabled ();
227
-
228
- Assertions .assertTrue (
229
- fixture .getOptionalFileWriter ().isEmpty (),
230
- "Expected empty file writer when native trino is disabled" );
231
-
232
- fixture .writeIonTextFile ("" );
233
- Assertions .assertTrue (
234
- fixture .getOptionalPageSource ().isEmpty (),
235
- "Expected empty page source when native trino is disabled" );
236
- }
237
-
238
221
private static Stream <Map .Entry <String , String >> propertiesWithDefaults ()
239
222
{
240
223
return Stream .of (
@@ -367,7 +350,6 @@ private static class TestFixture
367
350
{
368
351
private TrinoFileSystemFactory fileSystemFactory = new MemoryFileSystemFactory ();
369
352
private Location fileLocation = Location .of (TEST_ION_LOCATION );
370
- private HiveConfig hiveConfig = new HiveConfig ();
371
353
private Map <String , String > tableProperties = new HashMap <>();
372
354
private List <HiveColumnHandle > columns ;
373
355
private List <HiveColumnHandle > projections ;
@@ -389,14 +371,6 @@ private static class TestFixture
389
371
tableProperties .put (LIST_COLUMN_TYPES , columns .stream ().map (HiveColumnHandle ::getHiveType )
390
372
.map (HiveType ::toString )
391
373
.collect (Collectors .joining ("," )));
392
- // the default at runtime is false, but most of our testing obviously assumes it is enabled.
393
- hiveConfig .setIonNativeTrinoEnabled (true );
394
- }
395
-
396
- TestFixture withNativeIonDisabled ()
397
- {
398
- hiveConfig .setIonNativeTrinoEnabled (false );
399
- return this ;
400
374
}
401
375
402
376
TestFixture withSerdeProperty (String key , String value )
@@ -408,7 +382,7 @@ TestFixture withSerdeProperty(String key, String value)
408
382
Optional <ConnectorPageSource > getOptionalPageSource ()
409
383
throws IOException
410
384
{
411
- IonPageSourceFactory pageSourceFactory = new IonPageSourceFactory (fileSystemFactory , hiveConfig );
385
+ IonPageSourceFactory pageSourceFactory = new IonPageSourceFactory (fileSystemFactory );
412
386
413
387
long length = fileSystemFactory .create (getSession ()).newInputFile (fileLocation ).length ();
414
388
long nowMillis = Instant .now ().toEpochMilli ();
@@ -453,7 +427,7 @@ ConnectorPageSource getPageSource()
453
427
ConnectorSession getSession ()
454
428
{
455
429
if (session == null ) {
456
- session = getHiveSession (hiveConfig );
430
+ session = getHiveSession (new HiveConfig () );
457
431
}
458
432
return session ;
459
433
}
@@ -483,7 +457,7 @@ int writeZstdCompressedIonText(String ionText)
483
457
484
458
Optional <FileWriter > getOptionalFileWriter ()
485
459
{
486
- return new IonFileWriterFactory (fileSystemFactory , TESTING_TYPE_MANAGER , hiveConfig )
460
+ return new IonFileWriterFactory (fileSystemFactory , TESTING_TYPE_MANAGER )
487
461
.createFileWriter (
488
462
fileLocation ,
489
463
columns .stream ().map (HiveColumnHandle ::getName ).collect (toList ()),
0 commit comments