Skip to content

[query] Escaping field names that don't start with a letter#10829

Merged
danking merged 3 commits intohail-is:mainfrom
johnc1231:johnc-fix-die-numeric-field
Sep 2, 2021
Merged

[query] Escaping field names that don't start with a letter#10829
danking merged 3 commits intohail-is:mainfrom
johnc1231:johnc-fix-die-numeric-field

Conversation

@johnc1231
Copy link
Contributor

@johnc1231 johnc1231 commented Aug 31, 2021

My understanding of this now is that we have to backtick-escape any identifiers that aren't going to be valid java/python identifiers. That means we have to change the regex that identifies those to only accept things that start with a letter.

@patrick-schultz
Copy link
Member

Starting with an underscore is safe, isn't it?

@johnc1231
Copy link
Contributor Author

Ah yes, apparently Java considers an underscore to be a "letter": https://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.8

@johnc1231
Copy link
Contributor Author

Addressed

@danking danking merged commit e4b7aa1 into hail-is:main Sep 2, 2021
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.

3 participants