Skip to content

Prevent double quoting in db_signals filtering#1517

Draft
nablabits wants to merge 6 commits intodatachain-ai:mainfrom
nablabits:1434/fix-camel-and-snake-case
Draft

Prevent double quoting in db_signals filtering#1517
nablabits wants to merge 6 commits intodatachain-ai:mainfrom
nablabits:1434/fix-camel-and-snake-case

Conversation

@nablabits
Copy link
Copy Markdown

@nablabits nablabits commented Dec 17, 2025

Could fix #1434

The bottom line of the issue was that when having a column name of the sort xY, doing str over that around here returned the doubled quote version '"xY"' (presumably because column names are lowercased by default) rendering the output list of db_signal to be empty

After some conversations in the issue, we realised that DataChain is case insensitive which seems to point to the sanitization of inputs

Refactor db_signals() to filter on string names before converting to Column objects, preventing double quoting when filtering by name. Previously, filtering was applied after Column object creation, causing incorrect name matching.

Add test cases to verify column names with special characters (uppercase, underscores) are handled correctly in mutate operations.
@nablabits nablabits marked this pull request as draft January 27, 2026 19:51
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.

read_json fails when variable names are written in snake_case or camelCase

1 participant