Abhi2939 commented on issue #41077: URL: https://github.com/apache/beam/issues/41077#issuecomment-6726235182
.take-issue I'd like to work on this. The cause is the substring check in `_expand_python_mapping_func` (yaml_mapping.py): `if name in expression` also matches keyword-named columns like `in`, so it generates `in = __row__.in`. My plan is to bind only fields where `name.isidentifier() and not keyword.iskeyword(name)`, and add regression tests for Filter and MapToFields with a keyword-named column. I'll keep the PR Python-only. The Java `JavaRowUdf` check looks similar, so that could be a follow-up. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
