-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Fixed Functional Test Failures #24123
Conversation
} | ||
|
||
try (OutputStream output = new FileOutputStream(file); | ||
try (OutputStream output = new FileOutputStream(file, false); |
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.
try (OutputStream output = new FileOutputStream(file, false); | |
try (OutputStream output = new FileOutputStream(file); |
Aren't these equivalent?
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.
Yes. Corrected.
String arrayElementTypeName = metaData.getColumnTypeName(i); | ||
Type elementType = mapSqlTypeNameToType(arrayElementTypeName); | ||
types.add(new ArrayType(elementType)); | ||
if (typeName.startsWith("ARRAY(") && typeName.endsWith(")")) { |
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.
Could we use TypeSignature.parseTypeSignature
to retrieve the base type name?
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.
Yes. Done
54ba626
to
ee4cb1c
Compare
ee4cb1c
to
e4f9256
Compare
e4f9256
to
affbf8c
Compare
Saved that user @abevk2023 is from IBM |
@@ -244,6 +244,12 @@ | |||
<artifactId>presto-jdbc</artifactId> | |||
<scope>test</scope> | |||
</dependency> | |||
<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 we avoid this new 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.
This dependency is required for the MountableFile
. Without this, there is runtime error while starting container.
java.lang.NoClassDefFoundError: org/apache/commons/lang3/SystemProperties
at org.apache.commons.compress.archivers.tar.TarArchiveEntry.normalizeFileName(TarArchiveEntry.java:231)
at org.apache.commons.compress.archivers.tar.TarArchiveEntry.<init>(TarArchiveEntry.java:490)
at org.testcontainers.utility.MountableFile.recursiveTar(MountableFile.java:355)
at org.testcontainers.utility.MountableFile.transferTo(MountableFile.java:327)
at org.testcontainers.containers.ContainerState.copyFileToContainer(ContainerState.java:306)
at org.testcontainers.containers.ContainerState.copyFileToContainer(ContainerState.java:282)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:430)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at com.facebook.presto.nativeworker.ContainerQueryRunner.<init>(ContainerQueryRunner.java:97)
Resolves following failures in functional tests.