Commit Graph

2114 Commits (b9745d1c7048add980ae07ad4824ab2f43c95cbf)

Author SHA1 Message Date
Ahmet Gedemenli b9745d1c70 Move upgrade test to separate file 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 2108cff6b3 Add upgrade test 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 38825174fe Update tests 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 1f6e27f654 Add extended tests with complex graph 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 538f8913f5 Replace heap_getattr with heap_deform_tuple & fix multi_metadata_attributes.sql 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 5f6913e82e Fix test output 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli e730054d7c Add test for create table references 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli e38779312e Fix test output 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 2aad28d86d Inherit parent's autoconverted & add test 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 3a42891168 Mark auto-converted=false when creating fkeys 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli eed4c913ed Add test for undistributed partitioned table 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 02d77fb04e Add test for marking converted table as autoConverted=false 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 89b14bb03e Mark autoConverted=false when cascading 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 561948d7d4 Revert&Fix citus_local_tables.sql 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli ecd8dd2465 Fix rebase error 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 99d3e7db2c Revert multi_master_delete_protocol 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 9c798908b4 Revert tests 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli e5fe479eb5 Revert&Adjust fkey tests 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 9cbb33a448 Move new column to version 11 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 6f042365bd Fix test outputs 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 0d0cd9222c Rebase & Update tests 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 2b9fbce19e Fix tests 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 5783c498eb Add test 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 7e8185b3ce Style 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 4fe5cbfb49 Fix mx test 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli 4a6dbf886c Fix tests: Columnar, failure and MX 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli cdcb2c4049 Fix tests: multi-1 and MX 2021-10-27 19:21:37 +03:00
Ahmet Gedemenli e07d5c8530 Cover cases: ALTER TABLE .. ADD CONSTRAINT .. 2021-10-27 19:21:37 +03:00
Nils Dijk f4297f774a
Bump mitmproxy version (#5334)
There is a vulnerability in mitmproxy with the version we are using.

It would be hard to exploit anything with regards to the artifacts we ship as its only used in our test suite. Still its good hygiene to _not_ use software with known vulnerabilities.

This PR updates the version of python, mitmproxy and the crypto libraries used.
The latest version of mitmproxy for python 3.6 is not patched, hence the upgrade of python.
For our CI images this cascades into upgrading debian as well :)

For CI we bake these versions in our images so we need to update them as well.

Changes to the CI images: https://github.com/citusdata/the-process/pull/65
2021-10-27 17:57:13 +02:00
Jelte Fennema a8cbeb1047
Fix docs of arbitrary configs (#5413)
The old command would run none of the tests. The new command runs all of
the tests for the given configs.
2021-10-27 17:16:24 +02:00
Philip Dubé cc50682158 Fix typos. Spurred spotting "connectios" in logs 2021-10-25 13:54:09 +00:00
Onder Kalaci 575bb6dde9 Drop support for Inactive Shard placements
Given that we do all operations via 2PC, there is no way
for any placement to be marked as INACTIVE.
2021-10-22 18:03:35 +02:00
Önder Kalacı b3299de81c
Drop support for citus.multi_shard_commit_protocol (#5380)
In the past, we allowed users to manually switch to 1PC
(e.g., one phase commit). However, with this commit, we
don't. All multi-shard modifications are done via 2PC.
2021-10-21 14:01:28 +02:00
Marco Slot df43868369 Remove PG11 expected upgrade_list_citus_objects output 2021-10-21 12:08:05 +02:00
Marco Slot dafba6c242 Deprecate master_get_table_metadata UDF 2021-10-21 12:08:05 +02:00
Marco Slot defb97b7f5 Support operator class parameters in indexes 2021-10-20 17:03:59 +02:00
Önder Kalacı 3f726c72e0
When replication factor > 1, all modifications are done via 2PC (#5379)
With Citus 9.0, we introduced `citus.single_shard_commit_protocol` which
defaults to 2PC.

With this commit, we prevent any user to set it to 1PC and drop support
for `citus.single_shard_commit_protocol`.

Although this might add some overhead for users, it is already the default
behaviour (so less likely) and marking placements as INVALID is much
worse.
2021-10-20 01:39:03 -07:00
Sait Talha Nisanci a851211dbc Run tests sequentially 2021-10-19 18:35:26 +03:00
Marco Slot 641ef9bd6f Fix flappy subquery_append test 2021-10-19 15:29:01 +02:00
Sait Talha Nisanci 56abd3d501 Increase parallelism 2021-10-19 15:38:58 +03:00
Marco Slot 096660d61d Remove master_apply_delete_command 2021-10-18 22:29:37 +02:00
Marco Slot bece86b2f7 Add some subquery on append-distributed table tests 2021-10-18 21:11:16 +02:00
Marco Slot 93e79b9262 Never allow co-located joins of append-distributed tables 2021-10-18 21:11:16 +02:00
Marco Slot b97e5081c7 Disable co-located joins for append-distributed tables 2021-10-18 21:11:16 +02:00
Marco Slot dfad73d918 Disable implicit single re-partition joins for append tables 2021-10-18 21:11:16 +02:00
Marco Slot 2206e64e42 Disable single-repartition joins for append tables 2021-10-18 21:11:16 +02:00
Sait Talha Nisanci 6ff2083311 Remove base test as it is not useful anymore 2021-10-18 20:31:18 +03:00
Sait Talha Nisanci 7336c03c22 Add local-dist table joins to arbitrary configs 2021-10-18 20:31:18 +03:00
Önder Kalacı 31c8f279ac
Add helper UDFs to inspect object dependencies (#5293)
- citus_get_all_dependencies_for_object: emulate what Citus
                                         would qualify as
					 dependency when adding
					 a new node
- citus_get_dependencies_for_object: emulate what Citus would qualify
				     as dependency when creating an
				     object

Example use:
```SQL
-- find all the depedencies of table test
SELECT
	pg_identify_object(t.classid, t.objid, t.objsubid)
FROM
	(SELECT * FROM pg_get_object_address('table', '{test}', '{}')) as addr
JOIN LATERAL
	citus_get_all_dependencies_for_object(addr.classid, addr.objid, addr.objsubid) as t(classid oid, objid oid, objsubid int)
ON TRUE
	ORDER BY 1;
```
2021-10-18 14:46:49 +03:00
Halil Ozan Akgul 3fb996f6de Fix the tests that fail with MX in columnar_schedule 2021-10-15 13:09:01 +03:00