Skip to content

Dialect: Batched executemany and insert_bulk on crate+psycopg:// - #342

Open
bgunebakan wants to merge 1 commit into
bilal/63-dialect-add-sync-and-asyncio-dialects-over-the-pgwirefrom
bilal/64-dialect-batched-executemany-and-insert_bulk-on-cratepsycopg
Open

bgunebakan wants to merge 1 commit into
bilal/63-dialect-add-sync-and-asyncio-dialects-over-the-pgwirefrom
bilal/64-dialect-batched-executemany-and-insert_bulk-on-cratepsycopg

Conversation

@bgunebakan

Copy link
Copy Markdown
Contributor

Summary of the changes / Why this is an improvement

Depends on #340 (crate+psycopg://). In #340, executemany sends one statement per row and stops at the first failed row, and insert_bulk raises NotImplementedError. This PR makes both work like they do on crate://.

psycopg's own executemany() is not used. On CrateDB it loses a failed row without an error (crate/crate#20593), and with returning=True it hangs after a bind error (crate/crate#20633).

Checklist

@bgunebakan bgunebakan self-assigned this Nov 26, 2026
@bgunebakan bgunebakan added the python Pull requests that update Python code label Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0c9a8838-5c5b-4031-93f1-fa77dfcbb200

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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

Labels

python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant