Ido Hadanny created PIG-3718:
--------------------------------
Summary: pig alias overrides work only if there is a space
character following the alias
Key: PIG-3718
URL: https://issues.apache.org/jira/browse/PIG-3718
Project: Pig
Issue Type: Bug
Components: parser
Affects Versions: 0.11.1
Reporter: Ido Hadanny
Priority: Minor
when specifying an aliasOverride in registerScript, pig does not replace the
override unless there's a space character after it.
GruntParser:77 =
if (query.toLowerCase().startsWith(alias.getKey().toLowerCase() + " ")) {
This makes it impossible to make cool uses of this feature, such as removing
custom calls to macros. E.g. if I have a macro called store_only_in_debug_mode,
and I want to override it and ignore it in production, it would have been nice
if I could just add "store_only_in_debug_mode" to my override list. Currently,
this will only work if the script has a space char after the macro call. E.g.
store_only_in_debug_mode (my_alias); <--- works
store_only_in_debug_mode(my_alias); <--- doesn't work, sad
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)