Skip to content

test: verify Robin concat(col, lit, col) uses materializer (#474)#484

Merged
eddiethedean merged 2 commits intov4.0.0from
fix/474-robin-concat-ws
Feb 12, 2026
Merged

test: verify Robin concat(col, lit, col) uses materializer (#474)#484
eddiethedean merged 2 commits intov4.0.0from
fix/474-robin-concat-ws

Conversation

@eddiethedean
Copy link
Owner

Summary

Fixes #474 by adding a Robin backend test that verifies concat(col, lit(sep), col) is translated correctly (via the existing concat → concat_ws logic in the materializer).

Changes

  • tests/unit/backend/test_robin_materializer.py: Add test_concat_with_literal_separator_robin, which uses the Robin backend to run:
    • df.withColumn("full_name", F.concat(F.col("first_name"), F.lit(" "), F.col("last_name")))
    • Asserts that the resulting full_name values are "alice x" and "bob y".

The materializer already contains a concat branch that detects exactly one string Literal among the parts and routes to concat_ws; this test ensures that behavior is covered in CI for the Robin backend.

Made with Cursor

eddiethedean and others added 2 commits February 12, 2026 11:00
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant