-
Notifications
You must be signed in to change notification settings - Fork 99
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
SNOW-1731255: Put null or empty json nodes to DLQ for schema evolution #1017
Conversation
private void assertRecordsInTable() { | ||
@Test | ||
@Disabled | ||
void shouldSendValueWithWrongTypeToDLQ() throws Exception { |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
List<InMemoryKafkaRecordErrorReporter.ReportedRecord> reportedRecords = | ||
kafkaRecordErrorReporter.getReportedRecords(); | ||
assertThat(reportedRecords).hasSize(2); | ||
assertThat(reportedRecords.stream().map(it -> it.getRecord()).collect(Collectors.toList())) |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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
src/main/java/com/snowflake/kafka/connector/internal/SnowflakeErrors.java
Show resolved
Hide resolved
} | ||
|
||
private void assertRecordsInTable() { | ||
@Test | ||
@Disabled |
There was a problem hiding this comment.
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
Overview
SNOW-1731255
Pre-review checklist
snowflake.ingestion.method
.Yes
- Added end to end and Unit Tests.No
- Suggest why it is not param protected