Skip to content

MDEV-40868: SIGABRT in duckdb::Value::CastAs on UNION of DuckDB and InnoDB table - #5922

Open
itzanway wants to merge 1 commit into
MariaDB:11.4from
itzanway:fix-mdev-40868
Open

itzanway wants to merge 1 commit into
MariaDB:11.4from
itzanway:fix-mdev-40868

Conversation

@itzanway

Copy link
Copy Markdown
Contributor

DuckDB Value::CastAs can throw while converting InnoDB rows (for example zero DATETIME) during a cross-engine UNION. Catch the exception, raise a MariaDB error, and return -1 so fiber_scan_func can map thd->is_error() to state->error without aborting the server.

https://jira.mariadb.org/browse/MDEV-40868

@itzanway
itzanway changed the base branch from main to 11.4 October 19, 2026 17:34
@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Oct 20, 2026
@gkodinov gkodinov self-assigned this Oct 20, 2026

@gkodinov gkodinov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for your contribution! This is a preliminary review.

LGTM. Please stand by for the final review.

@gkodinov
gkodinov requested a review from drrtuy October 20, 2026 08:09
@gkodinov gkodinov assigned drrtuy and unassigned gkodinov Oct 20, 2026
@drrtuy

drrtuy commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@itzanway I shared with you an additional commit that should fix the silent ignore of the conversion errors. Plz take a look.

Catch DuckDB conversion exceptions in send_data, raise a MariaDB error, and return -1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants