-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add Kafka raw encoder #4417
Add Kafka raw encoder #4417
Conversation
8069f74
to
f1b7f8a
Compare
Make commit message just |
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
f1b7f8a
to
3f0ec1c
Compare
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.
Too hard for me :) => a suggestion. Let me know what you think.
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
3f0ec1c
to
a307b2d
Compare
I think I simplified/separated the mapping logic, let me know if what I did works better/worse. |
a307b2d
to
5a6c0e6
Compare
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!
I put bunch of suggestions but nothing super serious. It was much easier to read this for me, than previous version. Despite the fact that this one is probably a bit longer.
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Show resolved
Hide resolved
presto-kafka/src/test/java/io/prestosql/plugin/kafka/TestKafkaIntegrationSmokeTest.java
Show resolved
Hide resolved
5a6c0e6
to
651af88
Compare
|
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
651af88
to
04c7bcb
Compare
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. Looks much better now. MInor comments.
presto-kafka/src/test/java/io/prestosql/plugin/kafka/TestKafkaIntegrationSmokeTest.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
fa0c340
to
91cf482
Compare
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/main/java/io/prestosql/plugin/kafka/encoder/raw/RawRowEncoder.java
Outdated
Show resolved
Hide resolved
presto-kafka/src/test/java/io/prestosql/plugin/kafka/TestKafkaIntegrationSmokeTest.java
Outdated
Show resolved
Hide resolved
91cf482
to
856d21c
Compare
Add
RawRowEncoder
andRawRowEncoderFactory
Add test case in
io.prestosql.plugin.kafka.TestKafkaIntegrationSmokeTest#testRoundTripAllFormats