Skip to content

Conversation

chenjian2664
Copy link
Contributor

Description

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jul 25, 2025
@github-actions github-actions bot added the delta-lake Delta Lake connector label Jul 25, 2025
Copy link

This pull request has gone a while without any activity. Ask for help on #core-dev on Trino slack.

@github-actions github-actions bot added the stale label Aug 15, 2025
@github-actions github-actions bot removed the stale label Aug 18, 2025
@@ -118,10 +118,11 @@ public AbstractDeltaLakePageSink(
List<DeltaLakeColumnHandle> inputColumns,
List<String> originalPartitionColumns,
PageIndexerFactory pageIndexerFactory,
TrinoFileSystemFactory fileSystemFactory,
DeltaLakeFileSystemFactory fileSystemFactory,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering how you replaced TrinoFileSystemFactory with DeltaLakeFileSystemFactory. For instance, VacuumProcedure still uses TrinoFileSystemFactory. Is it intentional?

Also, what happens if the future developers introduce new classes with TrinoFileSystemFactory instead of DeltaLakeFileSystemFactory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how you replaced TrinoFileSystemFactory with DeltaLakeFileSystemFactory

honesty, I just look at every place that using TrinoFileSystemFactory and then replace it to DeltaLakeFileSystemFactory.

VacuumProcedure still uses TrinoFileSystemFactory. Is it intentional?

It's not intentional, I will update it to use DeltaLakeFileSystemFactory

what happens if the future developers introduce new classes TrinoFileSystemFactory instead of DeltaLakeFileSystemFactory

Good question, I'll investigate on it

@github-actions github-actions bot added iceberg Iceberg connector hive Hive connector labels Aug 26, 2025
@chenjian2664
Copy link
Contributor Author

@ebyhr I just have a try on ecad7c6 for adapting the FileHiveMetastoreFactory to avoid use TrinoFileSystemFacotry - I am afraid it's a bit overkill
If we want to avoid user to use TrinoFileSystemFactory then we should replace it using DeltaLakeFileSystemFactory in all Delta lake modules, see at the **MetastoreModule
I want to follow the Iceberg module's done, just introduce the new interface and use it by default(not remove TrinoFileSystemFactory)

@@ -24,4 +25,6 @@ public interface LocatedTableHandle
boolean managed();

String location();

VendedCredentialsHandle toCredentialsHandle();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need the above managed() and location()? VendedCredentialsHandle contains those information in my understanding.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are not holding the instance of VendedCredentialsHandle in LocatedTableHandle sub classes, or
do you mean change the method to default? i,e boolean managed() to

default boolean managed() 
{ 
    return toCredentialsHandle().managed();
}

@chenjian2664 chenjian2664 requested a review from ebyhr August 29, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed delta-lake Delta Lake connector hive Hive connector iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

2 participants