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

SNOW-1731255: Put null or empty json nodes to DLQ for schema evolution #1017

Merged

Conversation

sfc-gh-wtrefon
Copy link
Contributor

Overview

SNOW-1731255

Pre-review checklist

  • This change should be part of a Behavior Change Release. See go/behavior-change.
  • This change has passed Merge gate tests
  • Snowpipe Changes
  • Snowpipe Streaming Changes
  • This change is TEST-ONLY
  • This change is README/Javadocs only
  • This change is protected by a config parameter <PARAMETER_NAME> eg snowflake.ingestion.method.
    • Yes - Added end to end and Unit Tests.
    • No - Suggest why it is not param protected
  • Is his change protected by parameter <PARAMETER_NAME> on the server side?
    • The parameter/feature is not yet active in production (partial rollout or PrPr, see Changes for Unreleased Features and Fixes).
    • If there is an issue, it can be safely mitigated by turning the parameter off. This is also verified by a test (See go/ppp).

private void assertRecordsInTable() {
@Test
@Disabled
void shouldSendValueWithWrongTypeToDLQ() throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

additional test for unhappy path

@ParameterizedTest(name = "{0}")
@MethodSource("wrongTypeValueMessages_dataSource")
@Disabled
void shouldSendValueWithWrongTypeToDLQ(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

additional test for unhappy path

@sfc-gh-wtrefon sfc-gh-wtrefon marked this pull request as ready for review December 5, 2024 13:17
@sfc-gh-wtrefon sfc-gh-wtrefon requested a review from a team as a code owner December 5, 2024 13:17
List<InMemoryKafkaRecordErrorReporter.ReportedRecord> reportedRecords =
kafkaRecordErrorReporter.getReportedRecords();
assertThat(reportedRecords).hasSize(2);
assertThat(reportedRecords.stream().map(it -> it.getRecord()).collect(Collectors.toList()))
Copy link
Contributor

Choose a reason for hiding this comment

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

If only it would be Kotlin...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i try to forget... but still I sometimes remember the old good times

}

private void assertRecordsInTable() {
@Test
@Disabled
Copy link
Contributor

Choose a reason for hiding this comment

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

sdk 3.0.1 has just been merged to master. You can rebase and enable all tests.

…ts-dlq

# Conflicts:
#	src/test/java/com/snowflake/kafka/connector/streaming/iceberg/IcebergIngestionNoSchemaEvolutionIT.java
@sfc-gh-wtrefon sfc-gh-wtrefon enabled auto-merge (squash) December 5, 2024 16:38
@sfc-gh-wtrefon sfc-gh-wtrefon merged commit 77437fa into master Dec 6, 2024
49 of 54 checks passed
@sfc-gh-wtrefon sfc-gh-wtrefon deleted the wtrefon/SNOW-1731255-handle-null-empty-lists-dlq branch December 6, 2024 14:14
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.

3 participants