-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change
rapi_rel_to_altrep
to handle df
- Loading branch information
1 parent
32a0eb8
commit 5a89610
Showing
6 changed files
with
127 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
#include "duckdb/main/relation.hpp" | ||
#include "rapi.hpp" | ||
#include "reltoaltrep.hpp" | ||
|
||
namespace duckdb { | ||
|
||
class AltrepDataFrameRelation final : public Relation { | ||
public: | ||
AltrepDataFrameRelation(shared_ptr<Relation> parent); | ||
AltrepDataFrameRelation(duckdb::shared_ptr<Relation> p, cpp11::sexp df, duckdb::conn_eptr_t con, duckdb::shared_ptr<AltrepRelationWrapper> altrep); | ||
|
||
shared_ptr<Relation> parent; | ||
shared_ptr<Relation> table_function_relation; | ||
cpp11::sexp dataframe; | ||
duckdb::conn_eptr_t connection; | ||
duckdb::shared_ptr<AltrepRelationWrapper> altrep; | ||
duckdb::shared_ptr<Relation> parent; | ||
vector<ColumnDefinition> columns; | ||
public: | ||
unique_ptr<QueryNode> GetQueryNode() override; | ||
|
||
const vector<ColumnDefinition> &Columns() override; | ||
string ToString(idx_t depth) override; | ||
bool IsReadOnly() override; | ||
|
||
private: | ||
Relation& GetTableRelation(); | ||
|
||
Relation& GetParent(); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters