Skip to content
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

Remove double initialization of time_bucket origin #6588

Merged

Conversation

jnidzwetzki
Copy link
Contributor

@jnidzwetzki jnidzwetzki commented Feb 1, 2024

The variable origin in ts_timestamptz_bucket was initialized two times. This commit removes one of the initializations.


Disable-check: force-changelog-file

@@ -272,11 +272,6 @@ ts_timestamptz_bucket(PG_FUNCTION_ARGS)
if (TIMESTAMP_NOT_FINITE(timestamp))
PG_RETURN_TIMESTAMPTZ(timestamp);

if (PG_NARGS() > 2)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already initialized in line 269

The variable origin in ts_timestamptz_bucket was initialized two times.
This commit removes one of the initializations.
@jnidzwetzki jnidzwetzki force-pushed the timebucket_remove_double_origin branch from 9d7ff11 to 05aebb0 Compare February 1, 2024 11:52
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a00434) 79.80% compared to head (05aebb0) 79.83%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6588      +/-   ##
==========================================
+ Coverage   79.80%   79.83%   +0.02%     
==========================================
  Files         190      190              
  Lines       37264    37216      -48     
  Branches     9444     9426      -18     
==========================================
- Hits        29740    29710      -30     
+ Misses       3128     3122       -6     
+ Partials     4396     4384      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jnidzwetzki jnidzwetzki self-assigned this Feb 1, 2024
@jnidzwetzki jnidzwetzki marked this pull request as ready for review February 1, 2024 12:35
Copy link

github-actions bot commented Feb 1, 2024

@erimatnor, @mkindahl: please review this pull request.

Powered by pull-review

@jnidzwetzki jnidzwetzki merged commit 7474eee into timescale:main Feb 1, 2024
44 of 45 checks passed
@jnidzwetzki jnidzwetzki deleted the timebucket_remove_double_origin branch February 1, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants