13a9b55695 
								
							
								 
							
						 
						
							
							
								
								Skip expensive checks when fast-path query  
							
							... 
							
							
							
							The definition of fast-path query is very strict. So, we don't need
to do some extra checks. 
							
						 
						
							2020-01-06 12:42:43 +01:00  
				
					
						
							
							
								 
						
							
							
								7f3ab7892d 
								
							
								 
							
						 
						
							
							
								
								Skip shard pruning when possible  
							
							... 
							
							
							
							We're already traversing the queryTree and finding the distribution
key value, so pass it to the later stages of the planning. 
							
						 
						
							2020-01-06 12:42:43 +01:00  
				
					
						
							
							
								 
						
							
							
								ca293116fa 
								
							
								 
							
						 
						
							
							
								
								Reduce calls to FastPathRouterQuery()  
							
							... 
							
							
							
							Before this commit, we called it twice durning planning. Instead,
we save the information and pass it. 
							
						 
						
							2020-01-06 12:42:43 +01:00  
				
					
						
							
							
								 
						
							
							
								270571c106 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3333  from citusdata/fix_wrong_data  
							
							... 
							
							
							
							Make sure to update shard states of partitions on failures 
							
						 
						
							2020-01-06 11:37:40 +00:00  
				
					
						
							
							
								 
						
							
							
								c8f14c9f6c 
								
							
								 
							
						 
						
							
							
								
								Make sure to update shard states of partitions on failures  
							
							... 
							
							
							
							Fixes  #3331 
In #2389 , we've implemented support for partitioned tables with rep > 1.
The implementation is limiting the use of modification queries on the
partitions. In fact, we error out when any partition is modified via
EnsurePartitionTableNotReplicated().
However, we seem to forgot an important case, where the parent table's
partition is marked as INVALID. In that case, at least one of the partition
becomes INVALID. However, we do not mark partitions as INVALID ever.
If the user queries the partition table directly, Citus could happily send
the query to INVALID placements -- which are not marked as INVALID.
This PR fixes it by marking the placements of the partitions as INVALID
as well.
The shard placement repair logic already re-creates all the partitions,
so should be fine in that front. 
						
							2020-01-06 12:26:08 +01:00  
				
					
						
							
							
								 
						
							
							
								3c770516eb 
								
									
								
							
								 
							
						 
						
							
							
								
								Commenting out flaky intermediate data leak test ( #3359 )  
							
							... 
							
							
							
							check-multi apparently has an intermediate data leak, so commenting out
that test for now. This was introduced by #3349  
Examples:
- https://app.circleci.com/jobs/github/citusdata/citus/74675 
- https://app.circleci.com/jobs/github/citusdata/citus/74683 
- https://app.circleci.com/jobs/github/citusdata/citus/74763  
							
						 
						
							2020-01-06 11:55:01 +01:00  
				
					
						
							
							
								 
						
							
							
								d29ce8965c 
								
									
								
							
								 
							
						 
						
							
							
								
								Actually check that test output normalization is applied in CI ( #3358 )  
							
							... 
							
							
							
							Fixup of an issue with #3336  that caused CI not to check correctly that
normalized test output was committed. 
							
						 
						
							2020-01-06 10:37:34 +01:00  
				
					
						
							
							
								 
						
							
							
								de75243000 
								
									
								
							
								 
							
						 
						
							
							
								
								Commit normalized test output for better diffs ( #3336 )  
							
							... 
							
							
							
							We have a `normalize.sed` script that before diffing test output normalizes the
expected file and the actual file. This makes sure that we don't have random
test failures and that we have to update our test output all the time. This PR
takes that one step further and actually commits the normalized files. That way
whenever we DO have to update our test output files only relevant changes will
be visible in the diff.
The other change that this PR does it that it strips trailing whitespace during 
normalization. This works well with our editorconfig settings.
As an added benefit of committing these files it's also much more visible what
new normalization rules will result in. The original changes that were proposed
here were a bit to wide and were changing output that was not intentended to
be changed: https://github.com/citusdata/citus/pull/3161#discussion_r360928922 
Because these changes are now in the diff of the commit they are much easier to
spot.
Finally the Plan number normalization rules were also added to this PR, because
they are useful even without the CTE inlining PR. 
							
						 
						
							2020-01-06 09:56:31 +01:00  
				
					
						
							
							
								 
						
							
							
								4a20ba3bfc 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/master' into normalized-test-output  
							
							
							
						 
						
							2020-01-06 09:36:04 +01:00  
				
					
						
							
							
								 
						
							
							
								2e4e1c030f 
								
							
								 
							
						 
						
							
							
								
								Make sure the expected .out file always exists when running diff on it  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								16bcf15e16 
								
							
								 
							
						 
						
							
							
								
								Remove unused normalization rule  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								634ea80009 
								
							
								 
							
						 
						
							
							
								
								Add a basic testing README including normalization explanation  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								7c3e8e150e 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/Subplan [0-9]+\_/Subplan XXX\_/g  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								acd12a6de5 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/read_intermediate_result\('[0-9]+_/read_intermediate_result('XXX_/g  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								21dbd4e55d 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/generating subplan [0-9]+\_/generating subplan XXX\_/g  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								58723dd8b0 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/DEBUG:  Plan [0-9]+/DEBUG:  Plan XXX/g  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								34c5532e9c 
								
							
								 
							
						 
						
							
							
								
								Add commented out rules to normalize Plan numbers  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								38ac28b4b8 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: intermediate_results  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								0c6983a80e 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: pg12 changes  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								7730bd449c 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: Remove trailing whitespace  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								6353c9907f 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: Line info varies between versions  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								bf2c203908 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: solation_ref2ref_foreign_keys  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								7b2c769a5d 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: normalize file names for partitioned files  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								98bab9caab 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: ignore WAL warnings  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								5c0f955ab9 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: ignore could not consume warnings  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								dc3cff991f 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: normalize failed task ids  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								d0ade90cd0 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: pkey constraints for multi_insert_select  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								704e1d2bc8 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: shard table names for multi_name_lengths  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								1c4ea6836b 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: shard table names for multi_insert_select_conflict  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								27997c054e 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: shard table names for foreign_key_restrection_enforcement  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								432b5baac7 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: shard table names for custom_aggregate_support  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								0c23caeb75 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: shard table names for multi_subtransactions  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								883ee9121f 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: shard table names in foreign_key_to_reference_table  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								7f3de68b0d 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: header separator length  
							
							
							
						 
						
							2020-01-06 09:32:03 +01:00  
				
					
						
							
							
								 
						
							
							
								51a7e661f9 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3349  from citusdata/ensure-no-intermediate-data-leak-at-end  
							
							... 
							
							
							
							End regression tests with ensure_no_intermediate_data_leak 
							
						 
						
							2020-01-03 19:20:28 +00:00  
				
					
						
							
							
								 
						
							
							
								566246ecd4 
								
							
								 
							
						 
						
							
							
								
								End regression tests with ensure_no_intermediate_data_leak  
							
							... 
							
							
							
							Also update tests to clean up jobs when they're directly testing job udfs 
							
						 
						
							2020-01-03 18:59:02 +00:00  
				
					
						
							
							
								 
						
							
							
								0c70a5470e 
								
									
								
							
								 
							
						 
						
							
							
								
								Allow RETURNING in fast-path queries ( #3352 )  
							
							... 
							
							
							
							* Allow RETURNING in fast-path queries
Because there is no specific reason for that. 
							
						 
						
							2020-01-03 13:42:50 +00:00  
				
					
						
							
							
								 
						
							
							
								a174eb4f7b 
								
									
								
							
								 
							
						 
						
							
							
								
								Do not go through standard_planner() for INSERTs ( #3348 )  
							
							... 
							
							
							
							That seems unnecessary. We already have the notion of FastPath queries,
simply add it there. 
							
						 
						
							2020-01-03 12:15:22 +00:00  
				
					
						
							
							
								 
						
							
							
								75a9c25acd 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/node group [12] (but|does)/node group \1/  
							
							
							
						 
						
							2020-01-03 11:46:01 +01:00  
				
					
						
							
							
								 
						
							
							
								96434e898f 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/assigned task [0-9]+ to node/assigned task to node/  
							
							
							
						 
						
							2020-01-03 11:45:22 +01:00  
				
					
						
							
							
								 
						
							
							
								7b833466ba 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/shard [0-9]+/shard xxxxx/g  
							
							
							
						 
						
							2020-01-03 11:44:30 +01:00  
				
					
						
							
							
								 
						
							
							
								8b5fe8aa17 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/placement [0-9]+/placement xxxxx/g  
							
							
							
						 
						
							2020-01-03 11:42:48 +01:00  
				
					
						
							
							
								 
						
							
							
								f21f00544e 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/ port=[0-9]+ / port=xxxxx /g  
							
							
							
						 
						
							2020-01-03 11:42:09 +01:00  
				
					
						
							
							
								 
						
							
							
								8c5c0dd74c 
								
							
								 
							
						 
						
							
							
								
								Normalize tests: s/localhost:[0-9]+/localhost:xxxxx/g  
							
							
							
						 
						
							2020-01-03 11:40:50 +01:00  
				
					
						
							
							
								 
						
							
							
								a1ff2117bf 
								
							
								 
							
						 
						
							
							
								
								Ignore .modified and .unmodified files in git  
							
							
							
						 
						
							2020-01-03 11:38:12 +01:00  
				
					
						
							
							
								 
						
							
							
								7630029a7f 
								
							
								 
							
						 
						
							
							
								
								Keep an .unmodified file for debugging  
							
							
							
						 
						
							2020-01-03 11:30:08 +01:00  
				
					
						
							
							
								 
						
							
							
								9a819d401a 
								
							
								 
							
						 
						
							
							
								
								Ensure that only normalized test output is commited  
							
							
							
						 
						
							2020-01-03 11:30:08 +01:00  
				
					
						
							
							
								 
						
							
							
								8fae3ed800 
								
							
								 
							
						 
						
							
							
								
								Remove trailing whitespace during normalization in test output  
							
							
							
						 
						
							2020-01-03 11:30:08 +01:00  
				
					
						
							
							
								 
						
							
							
								b815425d2c 
								
							
								 
							
						 
						
							
							
								
								Make diff normalize our test output files in place  
							
							
							
						 
						
							2020-01-03 11:30:08 +01:00  
				
					
						
							
							
								 
						
							
							
								3cfb9b64bf 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3351  from citusdata/uncomment-working-tests  
							
							... 
							
							
							
							Uncomment local execution EXPLAIN ANALYZE tests 
							
						 
						
							2020-01-02 19:01:42 +00:00