Skip to content

fix: Use CatalogCommitConflicts for TableRequirement#1532

Merged
liurenjie1024 merged 7 commits intoapache:mainfrom
CTTY:ctty/req-error
Jul 22, 2025
Merged

fix: Use CatalogCommitConflicts for TableRequirement#1532
liurenjie1024 merged 7 commits intoapache:mainfrom
CTTY:ctty/req-error

Conversation

@CTTY
Copy link
Copy Markdown
Collaborator

@CTTY CTTY commented Jul 20, 2025

Which issue does this PR close?

What changes are included in this PR?

  • Use ErrorKind::CatalogCommitConflicts for TableRequirement::check
  • When metadata is None, returns ErrorKind::TableNotFound
  • Minor trimmings

Are these changes tested?

No

Copy link
Copy Markdown
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

Thanks @CTTY for this pr, generally LGTM! Left one comment to address.

backtrace: Backtrace::capture(),

retryable: false,
retryable: kind == ErrorKind::CatalogCommitConflicts,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is odd to me, I would expect explicit call to change the retryable property.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Hmm I don't have a strong opinion on this, was just thinking it will be more convenient like this. Will fix this

Copy link
Copy Markdown
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

Thanks @CTTY for this fix! LGTM!

@liurenjie1024 liurenjie1024 merged commit a675031 into apache:main Jul 22, 2025
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TableRequirement check failure should return CatalogCommitConflicts

2 participants