Skip to content

Refactor PostgreSQL column description construction - #40589

Draft
iamhucong wants to merge 1 commit into
apache:masterfrom
iamhucong:refactor/postgresql-column-description
Draft

iamhucong wants to merge 1 commit into
apache:masterfrom
iamhucong:refactor/postgresql-column-description

Conversation

@iamhucong

@iamhucong iamhucong commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Share PostgreSQL column-description construction between simple queries and portals, preserving the existing OID mapping and format selection.

Validation

  • PostgreSQL frontend focused tests on JDK 21 in the 287-module reactor at db85ce39: 32 passed (17 PostgreSQLComQueryExecutorTest and 15 PortalTest).
  • Spotless and Checkstyle for the five changed Java files.
  • PostgreSQL frontend Apache RAT check.

AI assistance: OpenAI Codex (PostgreSQL frontend refactor and tests).

@iamhucong

Copy link
Copy Markdown
Contributor Author

Summary

Simple Query and Portal now share PostgreSQL column description construction. The callers retain result-format selection, and the builder preserves native OIDs for TEXT and JDBC type mapping for BINARY.

Result

Review Result: Mergeable

No blocking findings in the scoped code review.

Evidence

  • Simple Query still emits TEXT. Portal still chooses the format before converting the zero-based position to a one-based wire column index.
  • The tests cover native OID handling, BINARY fallback, and array type mapping.
  • JDK 21: 32 targeted tests passed, including 17 in PostgreSQLComQueryExecutorTest and 15 in PortalTest. Spotless and Checkstyle passed for all five changed files. PostgreSQL frontend RAT passed.

Coverage

Reviewed db85ce393577 against 4f49ea1142ed. Local verification covered the PostgreSQL frontend and its source dependencies. A full repository build was outside this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant