Snowflake如何通过存储过程分阶段执行删除文件?

时间:2019-11-26 05:45:41

标签: snowflake-data-warehouse

如何从存储的过程中执行rm @mystage/data/input/ pattern='.*success.*';

我收到一条错误消息"Stored procedure execution error: Unsupported statement type 'UNKNOWN'."

1 个答案:

答案 0 :(得分:1)

以下过程对我有用

<?php 
ini_set( 'display_errors', 1 ); 
error_reporting( E_ALL );

require_once __DIR__ . '/vendor/autoload.php';

use Spiritix\Html2Pdf\Converter;
use Spiritix\Html2Pdf\Input\UrlInput;
use Spiritix\Html2Pdf\Output\DownloadOutput;

$input = new UrlInput();
$input->setUrl('https://www.google.com/');

$converter = new Converter($input, new DownloadOutput());

$converter->setOption('landscape', false);

$converter->setOptions([
    'printBackground' => true,
    'headerTemplate' => '<p>I am a header</p>',
]);
$output = $converter->convert();
$filename=date('YmdHis').".pdf";
$output->download($filename,'D');
// $output->download('F','http://localhost/test/file.pdf',true);
?>

也许您只需要反引号...