Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update to meltanolabs-target-postgres 0.7#100

Merged
amotl merged 4 commits into
mainfrom
rm-to_sql_type
May 12, 2026
Merged

Update to meltanolabs-target-postgres 0.7#100
amotl merged 4 commits into
mainfrom
rm-to_sql_type

Conversation

@amotl
Copy link
Copy Markdown
Member

@amotl amotl commented May 12, 2026

Just maintenance after meltanolabs-target-postgres 0.7.0 was released on May 8.

-- https://pypi.org/project/meltanolabs-target-postgres/

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 12, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: df96e44f-6485-401e-b0ca-7a5783bcc84e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch rm-to_sql_type

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@amotl amotl force-pushed the rm-to_sql_type branch from 526be5b to cbdef44 Compare May 12, 2026 19:58
@amotl
Copy link
Copy Markdown
Member Author

amotl commented May 12, 2026

@edgarrmondragon: Thank you for GH-97, it succeeds without ado. Do you have any idea why this patch fails, that aims to actually leverage the improvements from your pen?

@edgarrmondragon
Copy link
Copy Markdown

edgarrmondragon commented May 12, 2026

@edgarrmondragon: Thank you for GH-97, it succeeds without ado. Do you have any idea why this patch fails, that aims to actually leverage the improvements from your pen?

You might wanna update the reference for the sample taps:

[tool.uv]
sources.tap-countries = { git = "https://github.com/meltano/sdk.git", subdirectory = "packages/tap-countries", rev = "26a687e" }
sources.tap-fundamentals = { git = "https://github.com/meltano/sdk.git", subdirectory = "packages/tap-fundamentals", rev = "26a687e" }

i.e. set rev to the v0.53 branch or at least a more recent commit

@amotl amotl force-pushed the rm-to_sql_type branch 3 times, most recently from af596f8 to 765c80b Compare May 12, 2026 20:31
@amotl
Copy link
Copy Markdown
Member Author

amotl commented May 12, 2026

Oh right, thank you so much for reminding me about this. 🙇
I've added 765c80b to bump to sdk v0.53.

Now, I probably need to tackle this to complete the update:

FAILED target_cratedb/tests/test_standard_target.py::test_new_array_column - 
sqlalchemy.exc.UnsupportedCompilationError: Compiler <sqlalchemy_cratedb.compiler.CrateTypeCompiler object at 0x7f0f89825f40> can't render element of type JSONB

@amotl
Copy link
Copy Markdown
Member Author

amotl commented May 12, 2026

Hm. It looks like our pick_best_sql_type is no longer called, that's why it picks the one from PostgresConnector. This is why we submitted the other patch, but apparently, it doesn't resolve the problem completely yet?

Edit: I see that this method is now located in JSONSchemaToPostgres, so I probably need to transfer a bit of model refactoring?

@amotl amotl force-pushed the rm-to_sql_type branch from 765c80b to dee44c5 Compare May 12, 2026 21:22
@amotl amotl changed the title Update to meltanolabs-target-postgres 0.7, remove to_sql_type Update to meltanolabs-target-postgres 0.7 May 12, 2026
@amotl
Copy link
Copy Markdown
Member Author

amotl commented May 12, 2026

It looks like overriding pick_best_sql_type is no longer needed, but -- of course -- a custom variant of _handle_array_type. After providing a variant for CrateDB with dee44c5, the test suite succeeds.

Thank you again for your swift replies so I was able resolve relevant problems easily. 🙇
I've just released v0.2.0 that builds upon your recent improvements.

@amotl amotl marked this pull request as ready for review May 12, 2026 21:26
@amotl amotl merged commit 7dae3a5 into main May 12, 2026
5 checks passed
@amotl amotl deleted the rm-to_sql_type branch May 12, 2026 21:26
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