Skip to content

Conversation

tejeswarm
Copy link
Contributor

@tejeswarm tejeswarm commented Dec 5, 2024

pgmerge.sql:
This is a clone of the PostgreSQL community's merge.sql test, adapted for Citus by converting tables into Citus local tables. The expectation is that any MERGE syntax that works on PostgreSQL should work on Citus as-is, utilizing our MERGE deparser.

Diffs, which primarily seem to stem from two major features in MERGE introduced by the community:

RETURNING support for MERGE
MERGE support for updatable views

Currently, Citus code does not support these features. For now, I have implemented changes to catch these cases and raise clean exceptions. With these adjustments, the pgmerge tests now pass without diffs.

@tejeswarm tejeswarm force-pushed the fix-pgmerge branch 4 times, most recently from 3cef7d3 to 1fee9e5 Compare December 5, 2024 04:46
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release-13.0@698699d). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release-13.0    #7778   +/-   ##
===============================================
  Coverage                ?   89.61%           
===============================================
  Files                   ?      274           
  Lines                   ?    59697           
  Branches                ?     7448           
===============================================
  Hits                    ?    53499           
  Misses                  ?     4069           
  Partials                ?     2129           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tejeswarm tejeswarm force-pushed the fix-pgmerge branch 3 times, most recently from 97115bf to ce104fa Compare December 5, 2024 06:17
pgmerge.sql:
This is a clone of the PostgreSQL community's merge.sql test, adapted
for Citus by converting tables into Citus local tables. The expectation
is that any MERGE syntax that works on PostgreSQL should work on Citus
as-is, utilizing our MERGE deparser.

Diffs, which primarily seem to stem fromtwo major features in MERGE introduced by the community:

RETURNING support for MERGE
MERGE support for updatable views

Currently, Citus code does not support these features. For now, I have
implemented changes to catch these cases and raise clean exceptions.
With these adjustments, the pgmerge tests now pass without diffs.
@naisila naisila force-pushed the naisila/pg17_support branch 5 times, most recently from 1e55f40 to 1c39f95 Compare December 8, 2024 08:33
@naisila naisila force-pushed the naisila/pg17_support branch 14 times, most recently from 3d6c111 to 83e7371 Compare December 24, 2024 08:44
Base automatically changed from naisila/pg17_support to release-13.0 December 24, 2024 14:56
@onurctirtir
Copy link
Member

Do we still want to merge this? @tejeswarm / @naisila

@naisila
Copy link
Member

naisila commented Aug 29, 2025

It looks like all these changes (and more) were merged here a0cd8bd

@tejeswarm we can close this PR, right?

@onurctirtir
Copy link
Member

Closing this for now, we can re-open it anyways.

@onurctirtir onurctirtir closed this Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants