Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding valgrind testing to travis, and some changes to make it pass: (#…
…334) - `DataChunk` now always initialises its data - Trigonometric functions do not execute on NULL payloads because of undefined behavior - No more `NULL` values for empty `FROM` clauses, instead an `EmptyTableRef`/`BoundEmptyTableRef` is produced. Issue #328
- Loading branch information
Showing
48 changed files
with
301 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,4 +133,4 @@ if(NOT LEAN) | |
add_subdirectory(tools) | ||
add_subdirectory(benchmark) | ||
endif() | ||
endif() | ||
endif() |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//===----------------------------------------------------------------------===// | ||
// DuckDB | ||
// | ||
// parser/tableref/emptytableref.hpp | ||
// | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#pragma once | ||
|
||
#include "parser/tableref.hpp" | ||
|
||
namespace duckdb { | ||
//! Represents a cross product | ||
class EmptyTableRef : public TableRef { | ||
public: | ||
EmptyTableRef() : TableRef(TableReferenceType::EMPTY) { | ||
} | ||
|
||
public: | ||
bool Equals(const TableRef *other_) const override; | ||
|
||
unique_ptr<TableRef> Copy() override; | ||
|
||
//! Serializes a blob into a DummyTableRef | ||
void Serialize(Serializer &serializer) override; | ||
//! Deserializes a blob back into a DummyTableRef | ||
static unique_ptr<TableRef> Deserialize(Deserializer &source); | ||
}; | ||
} // namespace duckdb |
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,5 +1,6 @@ | ||
#include "parser/tableref/basetableref.hpp" | ||
#include "parser/tableref/crossproductref.hpp" | ||
#include "parser/tableref/emptytableref.hpp" | ||
#include "parser/tableref/joinref.hpp" | ||
#include "parser/tableref/subqueryref.hpp" | ||
#include "parser/tableref/table_function_ref.hpp" |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//===----------------------------------------------------------------------===// | ||
// DuckDB | ||
// | ||
// planner/tableref/bound_emptytableref.hpp | ||
// | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#pragma once | ||
|
||
#include "planner/bound_tableref.hpp" | ||
|
||
namespace duckdb { | ||
|
||
//! Represents a cross product | ||
class BoundEmptyTableRef : public BoundTableRef { | ||
public: | ||
BoundEmptyTableRef(index_t bind_index) : BoundTableRef(TableReferenceType::EMPTY), bind_index(bind_index) { | ||
} | ||
index_t bind_index; | ||
}; | ||
} // namespace duckdb |
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,5 +1,6 @@ | ||
#include "planner/tableref/bound_basetableref.hpp" | ||
#include "planner/tableref/bound_crossproductref.hpp" | ||
#include "planner/tableref/bound_dummytableref.hpp" | ||
#include "planner/tableref/bound_joinref.hpp" | ||
#include "planner/tableref/bound_subqueryref.hpp" | ||
#include "planner/tableref/bound_table_function.hpp" |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "parser/tableref/emptytableref.hpp" | ||
|
||
#include "common/serializer.hpp" | ||
|
||
using namespace duckdb; | ||
using namespace std; | ||
|
||
bool EmptyTableRef::Equals(const TableRef *other_) const { | ||
return true; // they are always the same they only have a type | ||
} | ||
|
||
unique_ptr<TableRef> EmptyTableRef::Copy() { | ||
return make_unique<EmptyTableRef>(); | ||
} | ||
|
||
void EmptyTableRef::Serialize(Serializer &serializer) { | ||
TableRef::Serialize(serializer); | ||
} | ||
|
||
unique_ptr<TableRef> EmptyTableRef::Deserialize(Deserializer &source) { | ||
return make_unique<EmptyTableRef>(); | ||
} |
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
Oops, something went wrong.