-
Notifications
You must be signed in to change notification settings - Fork 1
Use arrow::flight::sql::odbc namespace #110
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: apache-odbc
Are you sure you want to change the base?
Conversation
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.
The codebase looks much more cleaner now
namespace driver { | ||
namespace flight_sql { | ||
namespace arrow::flight::sql::odbc { | ||
namespace utils { |
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 am okay with this change. Just a clarification:
I think I saw something else at standup when I thought Arrow used utils
in existing code. I had realized that Arrow currently doesn't have any utils
namespace in C++ code. Arrow does use utils namespace from other places, such as Aws::Utils::
etc. Arrow also has classes like CopyDataUtils
but that's not a namespace either. Hopefully the community is good with this approach
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.
Nvm, I see Arrow does have Arrow::util
namespace. 🤦♀️
Should we use util
instead of utils
to be consistent?
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.
Switched to util
.
cpp/src/arrow/flight/sql/odbc/flight_sql/flight_sql_connection.cc
Outdated
Show resolved
Hide resolved
cpp/src/arrow/flight/sql/odbc/flight_sql/flight_sql_statement.cc
Outdated
Show resolved
Hide resolved
cpp/src/arrow/flight/sql/odbc/flight_sql/flight_sql_statement_get_columns.cc
Outdated
Show resolved
Hide resolved
cpp/src/arrow/flight/sql/odbc/flight_sql/accessors/date_array_accessor_test.cc
Show resolved
Hide resolved
cpp/src/arrow/flight/sql/odbc/odbcabstraction/odbc_impl/odbc_environment.cc
Show resolved
Hide resolved
10518a0
to
c77a844
Compare
Update namespaces driver::flight_sql and driver::odbcabstraction to arrow::flight::sql::odbc.
c77a844
to
d90733a
Compare
Rationale for this change
We want our ODBC code to live in the
arrow::flight::sql::odbc
namespace.What changes are included in this PR?
The two utils.cc/h files have been combined into one utils.cc/h and all that logic is put inside a new
utils
namespace insidearrow::flight::sql::odbc
. Thedriver::flight_sql
anddriver::odbcabstraction
namespaces have both been replaced witharrow::flight::sql::odbc
.Are these changes tested?
N/A
Are there any user-facing changes?
No