我正在尝试设置WrittenDestination.Name
为OutputLocalEnvironment.Variables.zipFileName
. 但是当我尝试运行和跟踪消息时,zipFileName
值为null
.
这是我的 ESQL 代码。
CREATE COMPUTE MODULE TFM_ERecruit_compare
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
SET OutputLocalEnvironment = InputLocalEnvironment;
SET OutputLocalEnvironment.Variables.zipFileName = InputLocalEnvironment.WrittenDestination.Name;
SET OutputLocalEnvironment.Variables.entryFileName = 'test.xml';
SET OutputLocalEnvironment.Variables.srcPath = InputLocalEnvironment.WrittenDestination.Directory;
SET OutputLocalEnvironment.Variables.logger_name = InputLocalEnvironment.Variables.logger_name;
RETURN TRUE;
END;
END MODULE;
我确定这OutputLocalEnvironment.WrittenDestination.Name
不是空的,因为我已经跟踪过了。