forked from alrocar/clickhouse_fdw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from tinybirdco/support-extract
support extract
- Loading branch information
Showing
12 changed files
with
126 additions
and
29 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Use this command to run tests locally: | ||
|
||
```sh | ||
docker-compose -f docker-compose.yml up -d && docker-compose -f docker-compose-extra.yml build --build-arg CHECK_CODE=false --build-arg PG_VERSION=14 tests && docker-compose -f docker-compose-extra.yml run tests | ||
``` | ||
|
||
To debug changes in the code use `elog` in the code, they'll be printed in the output of the tests. | ||
|
||
To get the results of the tests locally change `docker-compose-extra.yml` to connect a volume | ||
|
||
``` | ||
volumes: | ||
- /tmp/pg:/tmp | ||
``` | ||
|
||
Use `/tmp` as the outputdir when running the tests by changing this line in `CMakeLists.txt`: | ||
|
||
```sh | ||
add_custom_target(installcheck | ||
COMMAND ${PG_REGRESS} --inputdir=${PROJECT_SOURCE_DIR}/tests --outputdir=/tmp/tests \${EXTRA_REGRESS_OPTS} ${REGRESS_TESTS}) | ||
``` | ||
|
||
Now you can get the results file from `/tmp/pg/tests/results` and override the `.out` files with the actual output expected. |
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,10 +1,11 @@ | ||
version: '2' | ||
services: | ||
clickhouse: | ||
image: yandex/clickhouse-server | ||
image: clickhouse/clickhouse-server:latest | ||
network_mode: "host" | ||
ports: | ||
- "8123:8123" | ||
- "9000:9000" | ||
- 8123:8123 | ||
- 9000:9000 | ||
volumes: | ||
- ./docker/clickhouse-config.xml:/etc/clickhouse-server/config.xml | ||
- ./docker/clickhouse-users.xml:/etc/clickhouse-server/users.xml | ||
- ./docker/clickhouse-users.xml:/etc/clickhouse-server/users.xml |
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