我正在尝试根据 oozie workflow.xml 中另一个属性的存在来设置一个属性,如下所示:
<global>
<configuration>
<property>
<name>outputTableName</name>
<value>${firstNotNull(inputTableName, outputTableOverride)}</value>
</property>
</configuration>
</global>
Run Code Online (Sandbox Code Playgroud)
但是, outputTableOverride 仅在某些情况下存在。因此,它会失败,因为它有时会丢失。有没有办法检查属性是否存在?