Import-related Procedures
The import will not fail even if the creation of the imported object fails. Instead, an SQL warning will be thrown.
SYSADMIN.importView
This procedure imports a view.
SYSADMIN.importView(IN text string)
Example
CALL importView('CREATE VIEW test_views.v1 AS SELECT 1')
SYSADMIN.importProcedure
This procedure imports a virtual procedure.
SYSADMIN.importProcedure(IN text string)
Example
CALL SYSADMIN.importProcedure('CREATE PROCEDURE test_views.proc1() AS BEGIN SELECT * FROM test_tables.test_a; END')
SYSADMIN.importFunction
This procedure imports a data source-specific user-defined function.
SYSADMIN.importFunction(IN text string)
Example
CALL SYSADMIN.importFunction('CREATE PROCEDURE CREATE FOREIGN FUNCTION mssql.test_function(num1 integer, num2 integer) RETURNS integer OPTIONS (NAME_IN_SOURCE '"test_tables"."dbo"."test_UDF"');')
SYSADMIN.importFunction
is available since v4.8
SQL warnings in case of failed creation of imported objects available since v25.1