Skip to content

fix: return raw string for StringType literal - #468

Closed
WZhuo wants to merge 1 commit into
apache:mainfrom
WZhuo:fix_literal
Closed

WZhuo wants to merge 1 commit into
apache:mainfrom
WZhuo:fix_literal

Conversation

@WZhuo

@WZhuo WZhuo commented Dec 31, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/iceberg/test/literal_test.cc Outdated
.literal = Literal::String("hello \" world"),
.expected_type_id = TypeId::kString,
.expected_string = "\"hello world\""},
.expected_string = "\"hello \\\" world\""},

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.

Should it be escaped as hello%20%22%20world?

@WZhuo WZhuo Jan 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it's somehow like json literal. true, false for bool type, 1234 for integer and also json dump for string type, "hello \" world"

@WZhuo WZhuo changed the title fix: escape for getting string literal fix: return raw string for StringType literal Jan 6, 2026
@WZhuo WZhuo closed this Jan 7, 2026
@WZhuo
WZhuo deleted the fix_literal branch February 11, 2026 10:22
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.

2 participants