Skip to content

Conversation

@tianzhou
Copy link
Contributor

@tianzhou tianzhou commented Nov 8, 2025

follow up #157

Copilot AI review requested due to automatic review settings November 8, 2025 03:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances schema name normalization during plan generation by adding support for LIKE clauses and aggregate function schemas. When using temporary schemas for plan validation, all schema references must be replaced with the target schema name to ensure generated DDL is valid.

  • Added normalization of schema references in table LIKE clauses
  • Added normalization of TransitionFunctionSchema and FinalFunctionSchema in aggregates
  • Enhanced documentation explaining the schema replacement patterns and rationale

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tianzhou tianzhou requested a review from Copilot November 8, 2025 03:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

cmd/plan/plan.go:1

  • The example input on line 594 is missing '.employees' suffix, but the output on line 595 includes it. The input should be 'pgschema_tmp_20251030_154501_123456789.employees' to match the documented pattern being demonstrated.
package plan

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tianzhou tianzhou merged commit ff330ec into main Nov 8, 2025
14 checks passed
@tianzhou
Copy link
Contributor Author

tianzhou commented Nov 8, 2025

cc @p-c-h-b

@tianzhou tianzhou deleted the plan_schema_replacer_comment branch November 23, 2025 14:51
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.

1 participant