-
Notifications
You must be signed in to change notification settings - Fork 651
feat(pgwire):support binary format param of timestampz and interval type #5646
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
Conversation
8261b3d
to
0b4d7cd
Compare
Codecov Report
@@ Coverage Diff @@
## main #5646 +/- ##
==========================================
+ Coverage 74.85% 74.92% +0.06%
==========================================
Files 922 923 +1
Lines 146824 146932 +108
==========================================
+ Hits 109911 110083 +172
+ Misses 36913 36849 -64
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
0b4d7cd
to
ac038a6
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.
Most LGTM. @xiangjinwu PTAL.
- can add some e2e test or unit test?
- Timestampz -> Timestamptz, why?
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, and thanks for the timely support!
As Bowen said above, can we have some e2e tests?
let instant = Utc.timestamp_nanos(elem * 1000); | ||
let mut out = BytesMut::new(); | ||
instant | ||
.to_sql(&postgres_types::Type::ANY, &mut out) |
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 postgres_types::Type::TIMESTAMPTZ
?
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.
Did you say &postgres_types::Type::ANY? This is only a placeholder. I will add a comment later.
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> I am curious why we pass ANY
here
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 place needs a reference of postgres_types::Type, I just pick one postgres_types::Type casually 😂
|
ac038a6
to
7569a3f
Compare
77bd895
to
d174491
Compare
d174491
to
dda22d2
Compare
dda22d2
to
7f5bc8c
Compare
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
Checklist
./risedev check
(or alias,./risedev c
)Refer to a related PR or issue link (optional)
#3676