-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-48119: [C++][ODBC] Move class definitions to type_fwd.h #48596
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: main
Are you sure you want to change the base?
GH-48119: [C++][ODBC] Move class definitions to type_fwd.h #48596
Conversation
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format? or See also: |
|
|
|
|
|
CC @alinaliBQ |
|
|
|
@lidavidm Could you please help approving the CI workflows for this PR? |
|
The formatter has some complaints: diff --git a/cpp/src/arrow/flight/sql/odbc/odbc_impl/spi/connection.h b/cpp/src/arrow/flight/sql/odbc/odbc_impl/spi/connection.h
index 6feb5f208a..5418489169 100644
--- a/cpp/src/arrow/flight/sql/odbc/odbc_impl/spi/connection.h
+++ b/cpp/src/arrow/flight/sql/odbc/odbc_impl/spi/connection.h
@@ -26,8 +26,8 @@
#include <vector>
#include "arrow/flight/sql/odbc/odbc_impl/diagnostics.h"
-#include "arrow/flight/sql/odbc/odbc_impl/types.h"
#include "arrow/flight/sql/odbc/odbc_impl/type_fwd.h"
+#include "arrow/flight/sql/odbc/odbc_impl/types.h"
namespace arrow::flight::sql::odbc {
diff --git a/cpp/src/arrow/flight/sql/odbc/odbc_impl/spi/result_set.h b/cpp/src/arrow/flight/sql/odbc/odbc_impl/spi/result_set.h
index 1832be6943..b4a3994ca3 100644
--- a/cpp/src/arrow/flight/sql/odbc/odbc_impl/spi/result_set.h
+++ b/cpp/src/arrow/flight/sql/odbc/odbc_impl/spi/result_set.h
@@ -22,8 +22,8 @@
#include "arrow/flight/sql/odbc/odbc_impl/platform.h"
-#include "arrow/flight/sql/odbc/odbc_impl/types.h"
#include "arrow/flight/sql/odbc/odbc_impl/type_fwd.h"
+#include "arrow/flight/sql/odbc/odbc_impl/types.h"
#include <sqltypes.h>
diff --git a/cpp/src/arrow/flight/sql/odbc/odbc_impl/type_fwd.h b/cpp/src/arrow/flight/sql/odbc/odbc_impl/type_fwd.h
index dbec55d301..54e592949b 100644
--- a/cpp/src/arrow/flight/sql/odbc/odbc_impl/type_fwd.h
+++ b/cpp/src/arrow/flight/sql/odbc/odbc_impl/type_fwd.h
@@ -21,7 +21,7 @@ namespace arrow::flight::sql::odbc {
class Statement;
class ResultSet;
class ResultSetMetadata;
-}
+} // namespace arrow::flight::sql::odbc
// TODO: Replace ODBC namespace with namespace arrow::flight::sql::odbc #48083
namespace ODBC {
@@ -29,4 +29,4 @@ class ODBCEnvironment;
class ODBCDescriptor;
class ODBCStatement;
class ODBCConnection;
-}
+} // namespace ODBC |
Rationale for this change
This PR addresses the issue #48119
What changes are included in this PR?
Create type_fwd.h with forward declarations for ODBC classes to reduce compilation dependencies:
Are these changes tested?
No
Are there any user-facing changes?
No
type_fwd.hfile #48119