-
Notifications
You must be signed in to change notification settings - Fork 63
[FLINK-37733] Externalise DynamoDB connector IT Test to E2E test package #203
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
base: main
Are you sure you want to change the base?
Conversation
@@ -216,7 +216,7 @@ void testFloat() { | |||
Map<String, AttributeValue> actualResult = | |||
rowDataToAttributeValueConverter.convertRowData(createElement(value)); | |||
Map<String, AttributeValue> expectedResult = | |||
singletonMap(key, AttributeValue.builder().n("1.23456791E17").build()); | |||
singletonMap(key, AttributeValue.builder().n("1.2345679E17").build()); |
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.
Updated this test case as it failed locally when I ran it with Java version 8.0.432-amzn (Corretto) due to Java floating point number precision only accurate up to 6-7 digits decimal place.
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.
we use java11 right?
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.
we use java11 right?
We use Java 8 based on https://repo1.maven.org/maven2/org/apache/flink/flink-connector-parent/1.0.0/flink-connector-parent-1.0.0.pom
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.
Thanks @gguptp I have revisited this and found that I was running the test with java21 locally, once I changed it to java8, the test passed. As such I have reverted changes to this test case. Please take another look
<dependency> | ||
<groupId>software.amazon.awssdk</groupId> | ||
<artifactId>s3</artifactId> | ||
<scope>test</scope> | ||
</dependency> |
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.
Can you elaborate why s3 dependency is needed here?
Purpose of the change
[FLINK-37733] Externalise DynamoDB connector IT Test to E2E test package
flink-connector-dynamodb
package which means:Verifying this change
Please make sure both new and modified tests in this PR follows the conventions defined in our code quality guide: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing
mvn clean verify -Prun-end-to-end-tests -DdistDir=/Users/Downloads/flink-1.19.2
Significant changes
(Please check any boxes [x] if the answer is "yes". You can first publish the PR and check them afterwards, for convenience.)
@Public(Evolving)
)