-
Notifications
You must be signed in to change notification settings - Fork 118
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 #53 from citusdata/major-restructuring
Restructure the codebase according to Citus and PGXS guidelines
- Loading branch information
Showing
100 changed files
with
954 additions
and
406 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.gitignore | ||
*.o | ||
*.so | ||
*.out | ||
*.diff | ||
regress/binary.dat | ||
regress/failures | ||
binary.dat | ||
regression.out | ||
regression.diffs | ||
results | ||
|
||
hll--?.?.sql | ||
hll--?.?-*.sql | ||
!hll--?.?-*--?.?-*.sql |
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,21 +1,24 @@ | ||
sudo: required | ||
dist: trusty | ||
language: c | ||
env: | ||
- PGVERSION=9.2 | ||
- PGVERSION=9.3 | ||
- PGVERSION=9.4 | ||
- PGVERSION=9.5 | ||
- PGVERSION=9.6 | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- env: PGVERSION=9.4 | ||
- env: PGVERSION=9.5 | ||
- env: PGVERSION=9.6 | ||
- env: PGVERSION=10 | ||
- env: PGVERSION=11 | ||
allow_failures: | ||
- env: PGVERSION=11 | ||
before_install: | ||
- git clone -b v0.7.5 --depth 1 https://github.com/citusdata/tools.git | ||
- sudo make -C tools install | ||
- setup_apt | ||
- nuke_pg | ||
install: | ||
- install_uncrustify | ||
- install_pg | ||
before_script: | ||
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH # Add our chosen PG version to the path | ||
- sudo /etc/init.d/postgresql stop # Stop whichever version of PG that travis started | ||
- sudo /etc/init.d/postgresql start $PGVERSION # Start the version of PG that we want to test | ||
- sudo apt-get update -qq # Retrieves new list of packages | ||
- sudo apt-get install postgresql-server-dev-$PGVERSION # Required for PGXS | ||
- sudo apt-get install postgresql-common # Required for extension support files | ||
- createdb hll_regress # Create the test database | ||
script: | ||
- make && sudo make install | ||
- psql -c "create extension hll" hll_regress | ||
- make -C regress | ||
- config_and_start_cluster | ||
script: pg_travis_test |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,63 @@ | ||
-- ---------------------------------------------------------------- | ||
-- Regression tests for cardinality operator. | ||
-- ---------------------------------------------------------------- | ||
SELECT hll_set_output_version(1); | ||
hll_set_output_version | ||
------------------------ | ||
1 | ||
(1 row) | ||
|
||
SELECT #E'\\x108b49'::hll; | ||
?column? | ||
---------- | ||
|
||
(1 row) | ||
|
||
SELECT #hll_empty(11,5,256,1); | ||
?column? | ||
---------- | ||
0 | ||
(1 row) | ||
|
||
-- # gets evaluated first so || hll_union(double, bigint) fails | ||
SELECT #hll_empty(11,5,256,1) || hll_hash_integer(1,0); | ||
ERROR: operator does not exist: double precision || hll_hashval | ||
LINE 1: SELECT #hll_empty(11,5,256,1) || hll_hash_integer(1,0); | ||
^ | ||
HINT: No operator matches the given name and argument types. You might need to add explicit type casts. | ||
SELECT #(hll_empty(11,5,256,1) || hll_hash_integer(1,0)); | ||
?column? | ||
---------- | ||
1 | ||
(1 row) | ||
|
||
SELECT #E'\\x128b498895a3f5af28cafe'::hll; | ||
?column? | ||
---------- | ||
1 | ||
(1 row) | ||
|
||
SELECT #E'\\x128b498895a3f5af28cafeda0ce907e4355b60'::hll; | ||
?column? | ||
---------- | ||
2 | ||
(1 row) | ||
|
||
SELECT #E'\\x138b4f0061'::hll; | ||
?column? | ||
------------------ | ||
1.00024422012692 | ||
(1 row) | ||
|
||
SELECT #E'\\x148B480800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'::hll; | ||
?column? | ||
------------------ | ||
1.00024422012692 | ||
(1 row) | ||
|
||
SELECT #E'\\x148B480842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084210842108421084200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'::hll; | ||
?column? | ||
------------------ | ||
545.638878057197 | ||
(1 row) | ||
|
Oops, something went wrong.