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

[Kenrnel][Test only] Refactor and move method to generate protocol, metadata, schema to a separate class. #4169

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

huan233usc
Copy link
Collaborator

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

No prod code change, just refactor and move method to generate protocol, metadata, schema to a separate class. These utils could be shared in other case such as #4134

How was this patch tested?

Existing

Does this PR introduce any user-facing changes?

No

* */
trait TableMetadataTestUtils {

def createTestProtocol(minWriterVersion: Int, writerFeatures: String*): Protocol = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is not a generic utility. Better to change it to take everything (minReaderVersion, minWriterVersion) or (minReaderVersion, minWriterVersion, readerFeatures, writerFeatures). Otherwise this is a specific case created for TableFeaturesSuite.scala. Also this is going away in this PR.

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.

4 participants