Skip to main content

Managing Stages

This topic only covers the available tools, APIs, and commands for managing stages and staged files. It does not provide detailed syntax or examples. If you need more information, please refer to the relevant pages linked throughout this topic.

There are a variety of commands available in Databend to help you manage stages:

You can use the File Upload API to stage a file by uploading a local file to a stage. This API can be called using curl or other HTTP client tools. Alternatively, you can also upload files directly to the folder in your bucket that maps to a stage using a web browser. Once uploaded, Databend can recognize them as staged files.

In addition, these commands can help you manage staged files in a stage, such as listing or removing them.

Please note that some of the commands above do not apply to the user stage. See the table below for details:

StageCREATE STAGEDROP STAGEDESC STAGELIST FILESREMOVE FILESSHOW STAGES
User StageNoNoYesYesYesNo
Internal StageYesYesYesYesYesYes
External StageYesYesYesYesYesYes