-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pass in Python callback to native FlightSQLServer, invoke in GetFlightInfoStatement #492
Conversation
sopzha
commented
Apr 16, 2024
- Create in-memory map to store and retrieve query data, using efficient concurrent hash table from libcuckoo
- Build schema from query result field types
…tInfoStatement, DoGetStatement
…g from query field types
…ect map with mutex in brad_server_simple
…r<std::any>, use placeholder value in query_data map
…vector<std::any>> type
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 @sopzha! I think this PR is almost there. The main thing left is to implement something similar to BradStatement::FetchResult()
to actually convert the query result into the Arrow format. I left comments with pointers - please let me know if anything is confusing and I can explain more!
Thank you so much Geoffrey for the thorough review!! Made a first pass thru the comments and will review changes again tomorrow. Feel free to add any additional comments / lmk if I missed anything! I will store RecordBatch in BradStatement in a future PR. |
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 @sopzha - this looks great! Please also add in the Arrow conversion for string types and look over the other comments before merging.
@@ -5,8 +5,16 @@ | |||
#include <string> | |||
|
|||
#include <arrow/flight/sql/server.h> | |||
#include "brad_statement.h" | |||
#include <arrow/result.h> | |||
|
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.
(Another minor thing:) We should still have the includes for atomic
and functional
(since they are used in this class) 😄. We should add #include <vector>
and #include <string>
too. My previous comment was referring to removing mutex
since we aren't using it in the class anymore.