-
Notifications
You must be signed in to change notification settings - Fork 334
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
[BitSail][Feature] Support byte in type system #382
base: master
Are you sure you want to change the base?
Conversation
@BlockLiu Please help me review this pull request! |
} else if (BasicTypeInfo.BOOLEAN_TYPE_INFO.getTypeClass().equals(typeClass) || BasicTypeInfo.INT_TYPE_INFO.getTypeClass().equals(typeClass) || | ||
} | ||
else if (BasicTypeInfo.BYTE_TYPE_INFO.getTypeClass().equals(typeClass)) { | ||
converter = |
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 define check style in tools/maven/checkstyle.xml, and unfortunately it's not satisfied here.
You can reference this page to see if checkstyle is satisfied in IDEA.
@@ -39,7 +39,7 @@ | |||
public class Fake2HudiITCase { | |||
private static final Logger LOG = LoggerFactory.getLogger(Fake2HudiITCase.class); | |||
private static final String TEST_SCHEMA = | |||
"[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"text\",\"type\":\"string\"},{\"name\":\"timestamp\",\"type\":\"string\"}]"; | |||
"[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"text\",\"type\":\"string\"},{\"name\":\"age\",\"type\":\"byte\"},{\"name\":\"timestamp\",\"type\":\"string\"}]"; |
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.
Actually the ITCase test will fail because byte
type is not supported in com.bytedance.bitsail.connector.legacy.fake.source.FakeSource
.
So I suggest focusing on FakeSource
because it is a basic connenctor and widely used in various tests, and the modification to hudi connector can be ignored.
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.
Noted, will update PR accordingly
Hi @BlockLiu please help me review my pull request! Thank you! |
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
Signed-off-by:
Pre-Checklist
Note: Please complete ALL items in the following checklist.
Purpose
close [BitSail][Feature] Support byte in type system
Approaches
Some description about how this PR achives the purpose.
Add Byte Type to TypeInfoBridge map
Related Issues
Close #246
New Behavior (screenshots if needed)
N/A