Skip to content

Drop CREATE USER MAPPING with the foreign data warning - #210

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
upstream/create-user-mapping
Oct 31, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
upstream/create-user-mapping

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Collaborator

apache/datafusion-sqlparser-rs#2751 parses CREATE USER MAPPING into a new Statement::CreateUserMapping, and pg2sqlite's statement match, which has no wildcard on purpose, stopped compiling against sqlparser main.

A user mapping only gives the credentials a role uses for a foreign server. SQLite reads nothing but its own file, so no query result depends on it. It now takes the same lossy-drop warning as CREATE SERVER, CREATE FOREIGN DATA WRAPPER and CREATE FOREIGN TABLE, and the silent-drop sweep lists it among the warned statements.

@LucaCappelletti94 LucaCappelletti94 added the dependencies Pull requests that update a dependency file label Oct 31, 2026
@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LucaCappelletti94
LucaCappelletti94 merged commit 3ee5a80 into main Oct 31, 2026
19 checks passed
@LucaCappelletti94
LucaCappelletti94 deleted the upstream/create-user-mapping branch November 1, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant