use of io.trino.plugin.deltalake.AccessTrackingFileSystem in project trino by trinodb.
the class TestTableSnapshot method setUp.
@BeforeMethod
public void setUp() throws IOException, URISyntaxException {
checkpointSchemaManager = new CheckpointSchemaManager(typeManager);
URI deltaLogPath = getClass().getClassLoader().getResource("databricks/person").toURI();
tableLocation = new Path(deltaLogPath);
Configuration conf = new Configuration(false);
FileSystem filesystem = tableLocation.getFileSystem(conf);
accessTrackingFileSystem = new AccessTrackingFileSystem(filesystem);
HdfsConfig hdfsConfig = new HdfsConfig();
HdfsConfiguration hdfsConfiguration = new HiveHdfsConfiguration(new HdfsConfigurationInitializer(hdfsConfig), ImmutableSet.of());
hdfsEnvironment = new HdfsEnvironment(hdfsConfiguration, hdfsConfig, new NoHdfsAuthentication());
}
Aggregations