-
Notifications
You must be signed in to change notification settings - Fork 891
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
874813c
commit 3f7e9c4
Showing
8 changed files
with
89 additions
and
9 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
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,3 @@ | ||
# Add all *.c to sources in upperlevel directory | ||
set(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/decompress_chunk_vector.c) | ||
target_sources(${TSL_LIBRARY_NAME} PRIVATE ${SOURCES}) |
59 changes: 59 additions & 0 deletions
59
tsl/src/nodes/decompress_chunk_vector/decompress_chunk_vector.c
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,59 @@ | ||
/* | ||
* This file and its contents are licensed under the Timescale License. | ||
* Please see the included NOTICE for copyright information and | ||
* LICENSE-TIMESCALE for a copy of the license. | ||
*/ | ||
|
||
#include <postgres.h> | ||
#include <catalog/pg_operator.h> | ||
#include <miscadmin.h> | ||
#include <nodes/bitmapset.h> | ||
#include <nodes/makefuncs.h> | ||
#include <nodes/nodeFuncs.h> | ||
#include <optimizer/cost.h> | ||
#include <optimizer/optimizer.h> | ||
#include <optimizer/pathnode.h> | ||
#include <optimizer/paths.h> | ||
#include <parser/parsetree.h> | ||
#include <utils/builtins.h> | ||
#include <utils/lsyscache.h> | ||
#include <utils/typcache.h> | ||
|
||
#include <planner.h> | ||
|
||
#include "compat/compat.h" | ||
#include "debug_assert.h" | ||
#include "ts_catalog/hypertable_compression.h" | ||
#include "import/planner.h" | ||
#include "compression/create.h" | ||
#include "nodes/decompress_chunk/decompress_chunk.h" | ||
#include "nodes/decompress_chunk/planner.h" | ||
#include "nodes/decompress_chunk/qual_pushdown.h" | ||
#include "nodes/decompress_chunk_vector/decompress_chunk_vector.h" | ||
#include "utils.h" | ||
|
||
void | ||
ts_decompress_vector_modify_paths(PlannerInfo *root, RelOptInfo *input_rel, RelOptInfo *output_rel) | ||
{ | ||
Assert(root != NULL); | ||
Assert(input_rel != NULL); | ||
Assert(output_rel != NULL); | ||
Assert(output_rel->reloptkind == RELOPT_UPPER_REL); | ||
|
||
ListCell *lc; | ||
foreach (lc, output_rel->pathlist) | ||
{ | ||
/* We are only interested in AggPaths */ | ||
if (!IsA(lfirst(lc), AggPath)) | ||
continue; | ||
|
||
AggPath *aggregation_path = lfirst_node(AggPath, lc); | ||
|
||
/* We are only interested in splitted paths */ | ||
if (aggregation_path->aggsplit != AGGSPLIT_FINAL_DESERIAL) | ||
continue; | ||
|
||
Path *aggregation_sub_path = aggregation_path->subpath; | ||
Assert(aggregation_sub_path); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
tsl/src/nodes/decompress_chunk_vector/decompress_chunk_vector.h
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,19 @@ | ||
/* | ||
* This file and its contents are licensed under the Timescale License. | ||
* Please see the included NOTICE for copyright information and | ||
* LICENSE-TIMESCALE for a copy of the license. | ||
*/ | ||
#ifndef TIMESCALEDB_DECOMPRESS_CHUNK_VECTOR_H | ||
#define TIMESCALEDB_DECOMPRESS_CHUNK_VECTOR_H | ||
|
||
#include <postgres.h> | ||
#include <nodes/bitmapset.h> | ||
#include <nodes/extensible.h> | ||
|
||
#include "chunk.h" | ||
#include "hypertable.h" | ||
|
||
extern void ts_decompress_vector_modify_paths(PlannerInfo *root, RelOptInfo *input_rel, | ||
RelOptInfo *output_rel); | ||
|
||
#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