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

AVRO-3904: [Rust] schema_compatibility module refactor #2742

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

marcosschroh
Copy link
Contributor

What is the purpose of the change

Code refactor for schema_compatibility module.

  • Some unnecessary else clause have been removed
  • Improve iterations with find_map
  • Match case grouped for SchemaKind::TimeMicros, SchemaKind::TimestampNanos, SchemaKind::TimestampMillis, SchemaKind::TimestampMicros, SchemaKind::LocalTimestampMillis, SchemaKind::LocalTimestampMicros, SchemaKind::LocalTimestampNanos for check_writer_type

Verifying this change

Code cleanup and refactor without any test coverage

Documentation

  • Does this pull request introduce a new feature? (no)

@marcosschroh
Copy link
Contributor Author

@martin-g Please review when you have time

@marcosschroh marcosschroh force-pushed the refactor/compatibility-check branch 2 times, most recently from 612e418 to 62f7493 Compare February 19, 2024 19:39
@martin-g martin-g changed the title NO-JIRA: [Rust] schema_compatibility module refactor AVRO-3904: [Rust] schema_compatibility module refactor Feb 20, 2024
@martin-g martin-g merged commit 9f4f84e into apache:main Feb 20, 2024
15 checks passed
martin-g pushed a commit that referenced this pull request Feb 20, 2024
@martin-g
Copy link
Member

Thank you, @marcosschroh !

@marcosschroh marcosschroh deleted the refactor/compatibility-check branch February 22, 2024 16:35
RanbirK pushed a commit to RanbirK/avro that referenced this pull request May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants