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

Error handling on creating property graphs #26

Open
1 of 9 tasks
Dtenwolde opened this issue Feb 16, 2023 · 6 comments
Open
1 of 9 tasks

Error handling on creating property graphs #26

Dtenwolde opened this issue Feb 16, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request low priority

Comments

@Dtenwolde
Copy link
Contributor

Dtenwolde commented Feb 16, 2023

Should throw a catalog/Binder exception

  • Internal exception when creating property graph on non-existing table #103
  • Column of a table does not exist
  • FK of a table does not exist
  • Primary keys are not unique
  • PK of referenced source table does not exist
  • PK of referenced destination table does not exist
  • FK of source of edge table does not exist
  • Multiple PKs are referenced from source/destination table (How would this work?)
  • Ensure everything is case insensitive
@Dtenwolde Dtenwolde transferred this issue from cwida/duckdb-pgq Jun 26, 2023
Dtenwolde pushed a commit that referenced this issue Dec 5, 2023
@Dtenwolde Dtenwolde changed the title Create a test case that creates a property graph on non-existing tables Error handling on creating property graphs Mar 22, 2024
@Dtenwolde Dtenwolde added the enhancement New feature or request label Mar 25, 2024
Copy link

github-actions bot commented Sep 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 7, 2024
@Dtenwolde Dtenwolde self-assigned this Sep 7, 2024
@dentiny
Copy link
Contributor

dentiny commented Dec 3, 2024

Hi @Dtenwolde , I would like to know more about duckdb and pgq; I'm wondering if you could provide me some code pointers, and if I could take some of the low-priority tickets mentioned in the issue? Thank you!

@Dtenwolde
Copy link
Contributor Author

Hi @dentiny, thanks for showing interest! This issue is partially outdated, I haven't found the time yet to verify all of the cases above actually have the correct behaviour of throwing an error. In case you want to work on this I would greatly appreciate it!
The code to verify the property graph is here: https://github.com/cwida/duckpgq-extension/blob/main/src/core/functions/table/create_property_graph.cpp.
Relevant test cases are here: https://github.com/cwida/duckpgq-extension/blob/main/test/sql/create_pg
Here are some instructions to run the tests (I use CLion so if you have issues I can help out): https://www.notion.so/duckpgq/Contribution-guide-d4f31c025cb44cb2bb477666cdd9e86f

Alternatively, if you want to work on implementing a new feature I think supporting more graph algorithms would be nice, I have a list here: #132. The list is mostly a guideline, so if you have another algorithm in mind that's not on the list then let me know :)
In case you want to implement a graph algorithm, I'd take a look at how PageRank is implemented: https://github.com/cwida/duckpgq-extension/blob/main/src/core/functions/table/pagerank.cpp and https://github.com/cwida/duckpgq-extension/blob/main/src/core/functions/scalar/pagerank.cpp.
The query builds an on the fly CSR data structure and then uses that as the graph representation for the algorithm.

Let me know what you'd like to work on and reach out if you have any questions! :)

@dentiny
Copy link
Contributor

dentiny commented Dec 6, 2024

Thank you so much for your kind word and guidance! I will try to get myself familiar with the proj and see if I could help with the error handling.

@Dtenwolde
Copy link
Contributor Author

Hi @dentiny I just found an issue that's quite related to this one and should be a good, concrete first issue to work on if you want: #176 :)

@dentiny
Copy link
Contributor

dentiny commented Dec 12, 2024

Hi @dentiny I just found an issue that's quite related to this one and should be a good, concrete first issue to work on if you want: #176 :)

Thank you so much for the concrete task and instruction! I will work on it this weekend!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

2 participants