Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/lang: add ruby language tests #23130

Merged
merged 2 commits into from
Nov 11, 2023
Merged

Conversation

benesch
Copy link
Member

@benesch benesch commented Nov 11, 2023

To ensure that type mapping with the pg gem works as desired.

Motivation

  • This PR fixes a previously unreported bug.

    Type mapping with the Ruby pg gem (see enclosed test) did not work.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:
    • n/a

The type mapper in Ruby's pg gem runs an introspection query that joins
`pg_type` with `pg_proc` on `pg_type.typinput`. It only cares about the
`pg_proc.procname` column, so add stub implementations for all the
typinput routines, just like we already do for the typreceive routines.
@benesch benesch requested review from a team as code owners November 11, 2023 06:46
@benesch benesch requested a review from maddyblue November 11, 2023 06:46
Copy link
Contributor

@maddyblue maddyblue left a comment

Choose a reason for hiding this comment

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

That was a lot! Thanks.

@benesch
Copy link
Member Author

benesch commented Nov 11, 2023

That was a lot! Thanks.

You bet! It started small and then one thing led to another .. and another .. and another.

To ensure that type mapping with the pg gem works as desired.
@benesch benesch merged commit 2fe05cf into MaterializeInc:main Nov 11, 2023
def- added a commit to MaterializeInc/sqlsmith that referenced this pull request Nov 11, 2023
def- added a commit to def-/materialize that referenced this pull request Nov 11, 2023
def- added a commit to def-/materialize that referenced this pull request Nov 11, 2023
def- added a commit to MaterializeInc/sqlsmith that referenced this pull request Nov 11, 2023
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.

2 participants