Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

chore: Support PG Dialect in Hibernate - #2238

Merged
sakthivelmanii merged 2 commits into
mainfrom
support_pg_dialect
Oct 23, 2025
Merged

chore: Support PG Dialect in Hibernate #2238
sakthivelmanii merged 2 commits into
mainfrom
support_pg_dialect

Conversation

@sakthivelmanii

@sakthivelmanii sakthivelmanii commented Oct 6, 2025

Copy link
Copy Markdown
Contributor
  1. Using @ListArrayType type for a character varying[] is actually converted to Postgres text type Ref.
  2. Similarly typeName can be from Postgres dialect equivalent.

@sakthivelmanii
sakthivelmanii requested review from a team October 6, 2025 18:47
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Oct 6, 2025
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Oct 9, 2025
@sakthivelmanii sakthivelmanii changed the title chore: Support text/varchar type in JDBC chore: Support PG Dialect in Hibernate Oct 9, 2025
@sakthivelmanii
sakthivelmanii marked this pull request as draft October 9, 2025 11:48
@sakthivelmanii
sakthivelmanii force-pushed the support_pg_dialect branch 3 times, most recently from 02d584b to a5a3446 Compare October 12, 2025 18:55
@sakthivelmanii
sakthivelmanii marked this pull request as ready for review October 12, 2025 18:56
olavloite
olavloite previously approved these changes Oct 22, 2025
* @return true if type name matches current type name or matches with one of postgres aliases
* or if it matches equivalent postgres type.
*/
public boolean matches(String typeName) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does this need to be public?


public abstract Type getSpannerType();

public Set<String> getAliases() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we rename this to getPostgreSQLAliases()? The matches(..) method below confused me at first, and that was partly because it seemed like this could be any type of alias for the type.

@sakthivelmanii
sakthivelmanii merged commit 05958fe into main Oct 23, 2025
27 checks passed
@sakthivelmanii
sakthivelmanii deleted the support_pg_dialect branch October 23, 2025 07:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants