fix: update PG13-to-PG14 transformer to use runtime schemas #162
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix PG13-to-PG14 Transformer Using Runtime Schemas
This PR updates the PG13-to-PG14 transformer to use runtime schemas for understanding wrapped/inline properties and fixes multiple transformation issues to significantly improve test pass rates.
Link to Devin run
https://app.devin.ai/sessions/8a032672a9424faba2e0cd048f2d23e9
Requested by
Dan Lynch ([email protected])
Key Changes
1. Fixed A_Const Transformation Direction
2. Added FuncCall funcformat Handling
3. Fixed SelectStmt sortClause Processing
4. Added TypeCast Method
5. Added ColumnDef and Constraint Methods
6. Runtime Schema Integration
Test Results
Before: Many tests failing due to fundamental transformation issues
After: 98/258 tests passing (significant improvement)
Specific Test Improvements
original-upstream-geometry- Fixed with sortClause handlingoriginal-upstream-misc_functions- Fixed with TypeCast methodTesting Transparency
What I Actually Checked
What I Did Not Check
Remaining Work
While this PR significantly improves the PG13-PG14 transformer, there are still 160/258 tests failing. The remaining issues appear to be:
Review Checklist
The transformer now uses runtime schema imports and has the foundation for more sophisticated schema-based transformations as the remaining issues are addressed.