Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify semantics for Trino filesystem #20847

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

oneonestar
Copy link
Member

Description

Clarify semantics for Trino filesystem.

Additional context and related issues

See discussion on Slack: https://trinodb.slack.com/archives/CP1MUNEUX/p1708958482815419

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

Copy link
Member

@electrum electrum left a comment

Choose a reason for hiding this comment

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

Thanks for documenting this

@electrum electrum merged commit 98abb12 into trinodb:master Feb 28, 2024
64 checks passed
@github-actions github-actions bot added this to the 440 milestone Feb 28, 2024

import static io.trino.memory.context.AggregatedMemoryContext.newSimpleAggregatedMemoryContext;

public interface TrinoOutputFile
{
/**
* Create file exclusively, failing if the file already exists. For file systems which do not
Copy link
Member

Choose a reason for hiding this comment

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

"Create file exclusively, failing or overwriting if the file already exists."

@@ -45,6 +52,12 @@ default void createExclusive(Slice content)
createExclusive(content, newSimpleAggregatedMemoryContext());
}

/**
* Create file exclusively, failing if the file already exists. For file systems which do not
Copy link
Member

Choose a reason for hiding this comment

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

"Create file exclusively, failing or overwriting if the file already exists."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants