Skip to content

Commit 3378a44

Browse files
committed
HPCC-33350 Roxie fieldTranslationEnabled not always correct if set in package
Signed-off-by: M Kelly <[email protected]>
1 parent 513d808 commit 3378a44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/pkgfiles/pkgimpl.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ class PKGFILES_API CPackageNode : implements IHpccPackage, public CInterface
124124
const char *val = queryEnv("control:enableFieldTranslation");
125125
if (!val) val = queryEnv("enableFieldTranslation"); // Backward compatibility
126126
if (val)
127+
{
128+
// if val is empty or "true" use global default
129+
if (isEmptyString(val) || strToBool(val))
130+
return getSysFieldTranslationEnabled();
127131
return getTranslationMode(val, false);
132+
}
128133
else
129134
return getSysFieldTranslationEnabled();
130135
}

0 commit comments

Comments
 (0)