-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug][Connector][FileBase]Parquet reader parsing array type exception. #4457
Conversation
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.
Add ut/it cases to verify this pull request is valid
@EricJoy2048 @TyrantLucifer @Hisoka-X PTAL, thanks. |
who has time help review, thanks. |
SeaTunnelRowType seaTunnelRowTypeInfo = | ||
parquetReadStrategy.getSeaTunnelRowTypeInfo(localConf, path); | ||
Assertions.assertNotNull(seaTunnelRowTypeInfo); | ||
System.out.println(seaTunnelRowTypeInfo); |
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.
Why not use assert?
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.
done .PTAL.
please approve ci. |
@Hisoka-X @EricJoy2048 @TyrantLucifer please approve ci. |
@Hisoka-X @EricJoy2048 @TyrantLucifer please approve ci. |
Waiting for CI/CD. |
@EricJoy2048 @ic4y @TyrantLucifer PTAL. |
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.
Based on #5545, we need to remove the binary and automatically generate it
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.
+1
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.
done.
public static final String DATA_FILE_PATH = "/tmp/data.parquet"; | ||
|
||
public static void generateTestData() throws IOException { | ||
System.out.println("generateTestData start."); |
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.
Please use log instead of System.out.println
.
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.
ok
LGTM waiting for ci ok |
CI is a bit unstable, but it is successful after re-running. |
Yes. Are you interested in helping improve it? |
@Test | ||
public void testParquetReadArray() throws Exception { | ||
String os = System.getProperty("os.name").toLowerCase(); | ||
if (!os.contains("win")) { |
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.
You can use @DisabledOnOs(OS.WINDOWS)
to instead of this. Please refer
Line 39 in 6f49ec6
@DisabledOnOs(OS.WINDOWS) |
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.
ok
ok, i try to study it. |
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.
LGTM if test passed.
@hailin0 @EricJoy2048 PTAL. |
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.
+1
apache#4457) --------- Co-authored-by: lightzhao <zhaolianyong777@gmail.com>
Purpose of this pull request
Parquet reader parsing array type exception. [java.lang.ArrayStoreException]
Check list
New License Guide
release-note
.