This message appears when a specific statement is not applicable in Snowflake, it means that there is no Snowflake equivalent for this statement and it is no longer needed, and for that reason, it is removed from the source code. However, SnowConvert keeps the original statement as part of the comment at the end.
Copy .LOGTABLE tduser.Employee_log;
. BEGIN MLOAD TABLES Employee_Stg;
.LAYOUT Employee;
.FIELD in_EmployeeNo * VARCHAR ( 10 );
.FIELD in_FirstName * VARCHAR ( 30 );
.FIELD in_LastName * VARCHAR ( 30 );
.FIELD in_BirthDate * VARCHAR ( 10 );
.FIELD in_JoinedDate * VARCHAR ( 10 );
.FIELD in_DepartmentNo * VARCHAR ( 02 );
.dml label EmpLabel
IGNORE DUPLICATE INSERT ROWS ;
INSERT INTO Employee_Stg (
EmployeeNo,
FirstName,
LastName,
BirthDate,
JoinedDate,
DepartmentNo
)
VALUES (
:in_EmployeeNo,
:in_FirstName,
:in_Lastname,
:in_BirthDate,
:in_JoinedDate,
:in_DepartmentNo
);
.IMPORT INFILE employee.txt
FORMAT VARTEXT ','
LAYOUT Employee
APPLY EmpLabel;
. END MLOAD;
LOGOFF;
Copy # *** Generated code is based on the SnowConvert Python Helpers version 2 . 0 . 6 ***
// SnowConvert Helpers Code section is omitted.
import os
import sys
import snowconvert.helpers
from snowconvert.helpers import Export
from snowconvert.helpers import exec
from snowconvert.helpers import BeginLoading
con = None
def main():
snowconvert.helpers.configure_log()
con = snowconvert.helpers.log_on()
# ** SSC - FDM - 0027 - REMOVED NEXT STATEMENT , NOT APPLICABLE IN SNOWFLAKE. **
#.LOGTABLE tduser.Employee_log
# ** SSC - FDM - 0027 - REMOVED NEXT STATEMENT , NOT APPLICABLE IN SNOWFLAKE. **
#. BEGIN MLOAD TABLES Employee_Stg
Employee_TableName = "Employee_TEMP_TABLE"
Employee_Columns = """in_EmployeeNo VARCHAR(10),
in_FirstName VARCHAR(30),
in_LastName VARCHAR(30),
in_BirthDate VARCHAR(10),
in_JoinedDate VARCHAR(10),
in_DepartmentNo VARCHAR(02)"""
Employee_Conditions = """in_EmployeeNo AS in_EmployeeNo, in_FirstName AS in_FirstName, in_LastName AS in_LastName, in_BirthDate AS in_BirthDate, in_JoinedDate AS in_JoinedDate, in_DepartmentNo AS in_DepartmentNo"""
def EmpLabel(tempTableName, queryConditions = "" ):
exec (f """INSERT INTO Employee_Stg (EmployeeNo, FirstName, LastName, BirthDate, JoinedDate, DepartmentNo)
SELECT
SRC.in_EmployeeNo,
SRC.in_FirstName,
:in_Lastname,
SRC.in_BirthDate,
SRC.in_JoinedDate,
SRC.in_DepartmentNo
FROM {tempTableName} SRC {queryConditions}""" )
# ** SSC - FDM - 0027 - REMOVED NEXT STATEMENT , NOT APPLICABLE IN SNOWFLAKE. TRANSLATED BELOW **
#.IMPORT INFILE employee.txt FORMAT VARTEXT ',' LAYOUT Employee APPLY EmpLabel
snowconvert.helpers.import_file_to_temptable(fr"employee.txt", Employee_TableName, Employee_Columns, Employee_Conditions, ',')
EmpLabel(Employee_TableName)
exec (f """DROP TABLE {Employee_TableName}""" )
if con is not None :
con.close()
con = None
snowconvert.helpers.quit_application()
if __name__ == "__main__" :
main()