Skip to content

Commit

Permalink
Rename directory flight_sql to sql (apache#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-telles authored Nov 19, 2021
1 parent ce60a27 commit df80ab6
Show file tree
Hide file tree
Showing 25 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion cpp/cmake_modules/FindArrowFlightSql.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if(ARROW_FOUND)
arrow_find_package(ARROW_FLIGHT_SQL
"${ARROW_HOME}"
arrow_flight_sql
arrow/flight/flight_sql/api.h
arrow/flight/sql/api.h
ArrowFlightSql
arrow-flight-sql)
if(NOT ARROW_FLIGHT_SQL_VERSION)
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ if(ARROW_FLIGHT)
endif()

if(ARROW_FLIGHT_SQL)
add_subdirectory(flight/flight_sql)
add_subdirectory(flight/sql)
endif()

if(ARROW_HIVESERVER2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

add_custom_target(arrow_flight_sql)

arrow_install_all_headers("arrow/flight/flight_sql")
arrow_install_all_headers("arrow/flight/sql")

set(FLIGHT_SQL_PROTO_PATH "${ARROW_SOURCE_DIR}/../format")
set(FLIGHT_SQL_PROTO ${ARROW_SOURCE_DIR}/../format/FlightSql.proto)
Expand Down Expand Up @@ -49,7 +49,7 @@ add_arrow_lib(arrow_flight_sql
SOURCES
${ARROW_FLIGHT_SQL_SRCS}
PRECOMPILED_HEADERS
"$<$<COMPILE_LANGUAGE:CXX>:arrow/flight/flight_sql/pch.h>"
"$<$<COMPILE_LANGUAGE:CXX>:arrow/flight/sql/pch.h>"
DEPENDENCIES
flight_sql_protobuf_gen
SHARED_LINK_FLAGS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

#pragma once

#include "arrow/flight/flight_sql/client.h"
#include "arrow/flight/sql/client.h"
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/flight/flight_sql/client.h"
#include "arrow/flight/sql/client.h"

#include <google/protobuf/any.pb.h>

#include "arrow/buffer.h"
#include "arrow/flight/flight_sql/FlightSql.pb.h"
#include "arrow/flight/sql/FlightSql.pb.h"
#include "arrow/flight/types.h"
#include "arrow/io/memory.h"
#include "arrow/ipc/reader.h"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

#include <utility>

#include "arrow/flight/flight_sql/FlightSql.pb.h"
#include "arrow/flight/flight_sql/api.h"
#include "arrow/flight/sql/FlightSql.pb.h"
#include "arrow/flight/sql/api.h"
#include "arrow/testing/gtest_util.h"

namespace pb = arrow::flight::protocol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/flight/flight_sql/example/sqlite_server.h"
#include "arrow/flight/sql/example/sqlite_server.h"

#include <sqlite3.h>

Expand All @@ -24,10 +24,10 @@
#include <boost/uuid/uuid_io.hpp>

#include "arrow/api.h"
#include "arrow/flight/flight_sql/example/sqlite_statement.h"
#include "arrow/flight/flight_sql/example/sqlite_statement_batch_reader.h"
#include "arrow/flight/flight_sql/example/sqlite_tables_schema_batch_reader.h"
#include "arrow/flight/flight_sql/server.h"
#include "arrow/flight/sql/example/sqlite_statement.h"
#include "arrow/flight/sql/example/sqlite_statement_batch_reader.h"
#include "arrow/flight/sql/example/sqlite_tables_schema_batch_reader.h"
#include "arrow/flight/sql/server.h"

namespace arrow {
namespace flight {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
#include <string>

#include "arrow/api.h"
#include "arrow/flight/flight_sql/FlightSql.pb.h"
#include "arrow/flight/flight_sql/example/sqlite_statement.h"
#include "arrow/flight/flight_sql/example/sqlite_statement_batch_reader.h"
#include "arrow/flight/flight_sql/server.h"
#include "arrow/flight/sql/FlightSql.pb.h"
#include "arrow/flight/sql/example/sqlite_statement.h"
#include "arrow/flight/sql/example/sqlite_statement_batch_reader.h"
#include "arrow/flight/sql/server.h"

namespace arrow {
namespace flight {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/flight/flight_sql/example/sqlite_statement.h"
#include "arrow/flight/sql/example/sqlite_statement.h"

#include <sqlite3.h>

#include <boost/algorithm/string.hpp>

#include "arrow/flight/flight_sql/example/sqlite_server.h"
#include "arrow/flight/sql/example/sqlite_server.h"

namespace arrow {
namespace flight {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/flight/flight_sql/example/sqlite_statement_batch_reader.h"
#include "arrow/flight/sql/example/sqlite_statement_batch_reader.h"

#include <sqlite3.h>

#include "arrow/builder.h"
#include "arrow/flight/flight_sql/example/sqlite_statement.h"
#include "arrow/flight/sql/example/sqlite_statement.h"

#define STRING_BUILDER_CASE(TYPE_CLASS, STMT, COLUMN) \
case TYPE_CLASS##Type::type_id: { \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <memory>

#include "arrow/flight/flight_sql/example/sqlite_statement.h"
#include "arrow/flight/sql/example/sqlite_statement.h"
#include "arrow/record_batch.h"

namespace arrow {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/flight/flight_sql/example/sqlite_tables_schema_batch_reader.h"
#include "arrow/flight/sql/example/sqlite_tables_schema_batch_reader.h"

#include <sqlite3.h>

#include <sstream>

#include "arrow/flight/flight_sql/example/sqlite_server.h"
#include "arrow/flight/flight_sql/example/sqlite_statement.h"
#include "arrow/flight/flight_sql/server.h"
#include "arrow/flight/sql/example/sqlite_server.h"
#include "arrow/flight/sql/example/sqlite_statement.h"
#include "arrow/flight/sql/server.h"
#include "arrow/ipc/writer.h"
#include "arrow/record_batch.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <memory>
#include <string>

#include "arrow/flight/flight_sql/example/sqlite_statement.h"
#include "arrow/flight/flight_sql/example/sqlite_statement_batch_reader.h"
#include "arrow/flight/sql/example/sqlite_statement.h"
#include "arrow/flight/sql/example/sqlite_statement_batch_reader.h"
#include "arrow/record_batch.h"

namespace arrow {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
// Interfaces to use for defining Flight RPC servers. API should be considered
// experimental for now

#include "arrow/flight/flight_sql/server.h"
#include "arrow/flight/sql/server.h"

#include <google/protobuf/any.pb.h>

#include "arrow/api.h"
#include "arrow/buffer.h"
#include "arrow/flight/flight_sql/FlightSql.pb.h"
#include "arrow/flight/flight_sql/sql_info_internal.h"
#include "arrow/flight/sql/FlightSql.pb.h"
#include "arrow/flight/sql/sql_info_internal.h"
#include "arrow/type.h"
#include "arrow/util/logging.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#include <string>
#include <unordered_map>

#include "arrow/flight/flight_sql/server.h"
#include "arrow/flight/flight_sql/sql_info_types.h"
#include "arrow/flight/server.h"
#include "arrow/flight/sql/server.h"
#include "arrow/flight/sql/sql_info_types.h"
#include "arrow/util/optional.h"

namespace arrow {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/flight/flight_sql/server.h"
#include "arrow/flight/sql/server.h"

#include <gmock/gmock.h>
#include <gtest/gtest.h>

#include "arrow/api.h"
#include "arrow/flight/api.h"
#include "arrow/flight/flight_sql/FlightSql.pb.h"
#include "arrow/flight/flight_sql/api.h"
#include "arrow/flight/flight_sql/example/sqlite_server.h"
#include "arrow/flight/sql/FlightSql.pb.h"
#include "arrow/flight/sql/api.h"
#include "arrow/flight/sql/example/sqlite_server.h"
#include "arrow/flight/test_util.h"
#include "arrow/flight/types.h"
#include "arrow/testing/gtest_util.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/flight/flight_sql/sql_info_internal.h"
#include "arrow/flight/sql/sql_info_internal.h"

#include "arrow/api.h"
#include "arrow/buffer.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

#include "arrow/flight/flight_sql/sql_info_types.h"
#include "arrow/flight/sql/sql_info_types.h"

namespace arrow {
namespace flight {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "arrow/array/builder_binary.h"
#include "arrow/array/builder_primitive.h"
#include "arrow/flight/api.h"
#include "arrow/flight/flight_sql/api.h"
#include "arrow/flight/sql/api.h"
#include "arrow/io/memory.h"
#include "arrow/pretty_print.h"
#include "arrow/status.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <memory>
#include <string>

#include "arrow/flight/flight_sql/example/sqlite_server.h"
#include "arrow/flight/server.h"
#include "arrow/flight/sql/example/sqlite_server.h"
#include "arrow/flight/test_integration.h"
#include "arrow/flight/test_util.h"
#include "arrow/io/test_common.h"
Expand Down

0 comments on commit df80ab6

Please sign in to comment.