Skip to content

Commit 7b9613f

Browse files
committed
[native] Advance velox
1 parent 4c543a0 commit 7b9613f

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

presto-native-execution/presto_cpp/main/connectors/SystemConnector.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ SystemTableHandle::SystemTableHandle(
7474
std::string schemaName,
7575
std::string tableName)
7676
: ConnectorTableHandle(std::move(connectorId)),
77+
name_(fmt::format("{}.{}", schemaName, tableName)),
7778
schemaName_(std::move(schemaName)),
7879
tableName_(std::move(tableName)) {
7980
VELOX_USER_CHECK_EQ(

presto-native-execution/presto_cpp/main/connectors/SystemConnector.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ class SystemTableHandle : public velox::connector::ConnectorTableHandle {
4242

4343
std::string toString() const override;
4444

45+
const std::string& name() const override {
46+
return name_;
47+
}
48+
4549
const std::string& schemaName() const {
4650
return schemaName_;
4751
}
@@ -53,6 +57,7 @@ class SystemTableHandle : public velox::connector::ConnectorTableHandle {
5357
const velox::RowTypePtr taskSchema() const;
5458

5559
private:
60+
const std::string name_;
5661
const std::string schemaName_;
5762
const std::string tableName_;
5863
};

presto-native-execution/presto_cpp/main/connectors/arrow_flight/ArrowFlightConnector.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ namespace facebook::presto {
3131
class ArrowFlightTableHandle : public velox::connector::ConnectorTableHandle {
3232
public:
3333
explicit ArrowFlightTableHandle(const std::string& connectorId)
34-
: ConnectorTableHandle(connectorId) {}
34+
: ConnectorTableHandle(connectorId), name_("arrow_flight") {}
35+
36+
const std::string& name() const override {
37+
return name_;
38+
}
39+
40+
private:
41+
const std::string name_;
3542
};
3643

3744
struct ArrowFlightSplit : public velox::connector::ConnectorSplit {

presto-native-execution/velox

Submodule velox updated 222 files

0 commit comments

Comments
 (0)