-
-
Notifications
You must be signed in to change notification settings - Fork 50
Week 5 sloan ordering #460
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
base: bipashabg-2025
Are you sure you want to change the base?
Week 5 sloan ordering #460
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughReferences to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SQL_Function (pgr_sloanOrdering)
participant C_Layer (_pgr_sloanordering)
participant Ordering_Process (pgr_process_ordering)
participant Ordering_Driver (do_ordering)
participant Result
User->>SQL_Function: CALL pgr_sloanOrdering(edges_sql)
SQL_Function->>C_Layer: _pgr_sloanordering(PG_FUNCTION_ARGS)
C_Layer->>Ordering_Process: pgr_process_ordering(edges_sql, which, int64_t **, size_t *)
Ordering_Process->>Ordering_Driver: do_ordering(edges_sql, which, int64_t **, size_t *, ...)
Ordering_Driver-->>Ordering_Process: result_tuples (int64_t array)
Ordering_Process-->>C_Layer: result_tuples, result_count
C_Layer-->>SQL_Function: Construct tuples from int64_t array
SQL_Function-->>User: Return result set
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@bipashabg Please write in a comment all the tasks/commits I made during the meeting, I suppose that at least you took notes, a screenshot or something so that you don't forget what to do. I just want to make sure that you do not forget. Here are some additional TODO: |
Commits/tasks made during the meeting:
|
@coderabbitai summary |
✅ Actions performedSummary regeneration triggered. |
void | ||
pgr_do_ordering( | ||
void | ||
do_ordering( |
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 get this kind of error:
ERROR: could not load library "/usr/lib/postgresql/16/lib/libpgrouting-4.0.so":
/usr/lib/postgresql/16/lib/libpgrouting-4.0.so: undefined symbol: _Z11do_orderingPKciPlPmPPcS4_S4_
Because the implementation does not match the definition.
include/drivers/ordering_driver.hpp
Outdated
#include <string> | ||
|
||
|
||
void | ||
do_ordering( | ||
std::string, int64_t, int64_t, | ||
const char*, int, |
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.
I dont understand why in 100% C++ code you want to use C arrays?
Fixes # .
Changes proposed in this pull request:
@pgRouting/admins
Summary by CodeRabbit
Documentation
pgr_sloanOrdering
function and align function signature comments with the actual implementation.pgr_sloanOrdering
in the documentation.Bug Fixes
Refactor
Tests
pgr_sloanOrdering
to ensure broader version coverage and accuracy.Chores