A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.snowflake.com/en/developer-guide/python-connector/../../user-guide/data-load-web-ui below:

Website Navigation


Load data using the web interface

Load data using the web interface

You can add data to tables through the Snowsight or Classic Console web interface.

From these interfaces, you can upload files that include structured data (including CSV or TSV formats) or semi-structured data (including JSON, Avro, ORC, Parquet, or XML formats).

You can upload data from the following:

You can upload up to 250 files at a time. Each file can be up to 250 MB. To load larger files, or a large number of files, use the Snowflake client: SnowSQL. For more information, see Bulk loading from a local file system.

Load data using Snowsight

When loading your data, you can either create a new table, or load data into an existing table.

For data loading sessions in Snowsight, Snowflake runs all SQL commands in an explicit transaction. These commands will be committed regardless of values you set for AUTOCOMMIT at ACCOUNT or USER levels.

Create a new table using Snowsight

When loading data, you can often create and automatically configure a new table for the data at the same time.

Note

Creating a new table from an XML file when loading data isn’t supported.

Creating a new Apache Iceberg™ table when loading data isn’t supported.

In these situations, create a new empty table, and then use the instructions to load data into an existing table.

  1. Sign in to Snowsight.

  2. Open the user menu, and select an account role that includes at least the following privileges:

    Object

    Privilege

    Notes

    Database

    USAGE

    Schema

    CREATE TABLE

    Stage

    USAGE

    Table

    OWNERSHIP

  3. In the navigation menu, select Create » Table » From File.

    The Load Data into Table dialog appears.

  4. Select or create a database and schema where you want the table to be created.

  5. Select the files that contain the data using one of these methods:

  6. Enter a name for the new table and then select Next. The table schema dialog appears.

    Snowsight detects the metadata schema for the file and returns the file format and column definitions identified by the INFER_SCHEMA function.

  7. Review the inferred file format, data type, column name, and a sample of column data. Ensure that all information is accurate and make updates if needed.

  8. Select Load.

    Snowsight loads the file and creates a new table for the file.

Load data into an existing table using Snowsight
  1. Sign in to Snowsight.

  2. Open the user menu, and select an account role that includes at least the following privileges:

    Object

    Privilege

    Notes

    Database

    USAGE

    Schema

    USAGE

    Stage

    USAGE

    Required for loading a file from a stage.

    File format

    USAGE

    Required for using a named file format.

    Table

    INSERT

  3. In the navigation menu, select Data » Add Data.

  4. Select Load data into a Table. The Load Data into Table dialog appears.

  5. Select the files that contain the data using one of these methods:

  6. Select the database, schema, and table where you want to load data.

  7. Select Next. The Edit Schema page appears in the Load Data into Table dialog.

  8. Make final customizations as needed:

  9. Select the Edit Schema tab on the right side of the table schema dialog. If there are any discrepancies between the source file and the target table, make adjustments as needed.

    Select the correct column name from the dropdown list to match the source file with the target table. For example, in the following screenshot, the source file has a column named building and the target table has a column named BUILDING_ID.

  10. Optional: Select the Table Preview tab to preview how the data of the incoming source file will look in the target table.

  11. Select Load.

    Snowsight loads your file and displays the number of rows successfully inserted into the table.

Load data using Classic Console

The Classic Console provides a wizard for loading limited amounts of data into a table from a small set of files. The wizard performs the same PUT and COPY operations that you would using SQL, but combines the two phases (staging files and loading data) into a single operation and deleting all staged files after the load completes.

You can load data from files on your local machine or files already staged in an existing cloud storage location on Snowflake, Amazon S3, Google Cloud Storage, or Microsoft Azure.

Select a role

Select a role that has the appropriate privileges. (Select the dropdown menu in the upper left (next to your login name) » Switch Role » ACCOUNTADMIN.)

Select the table where you will load the data
  1. Select Databases .

  2. Select a specific database and schema.

  3. Select the Tables tab.

  4. Locate the table into which you want to load data.

  5. Start loading data into a specific table by doing one of the following:

    The Load Data wizard opens.

  6. Select a warehouse to use to load data into the table. The drop-down includes any warehouse on which you have the USAGE privilege.

  7. Select Next.

Select the data to load

Depending on where you choose to load data from, follow the relevant steps. If you want to load data from multiple locations, use the Load Data wizard multiple times.

To load data from your computer:

  1. Select the Load files from your computer option, and select Select Files to browse to the files that you want to load.

  2. Select one or more local data files and select Open.

  3. Select Next.

To load data from an existing stage:

  1. Select the Load files from external stage option.

  2. Select an existing stage from the Stage dropdown list.

  3. (Optional) Specify a path to the files in the stage.

  4. Select Next.

To create a stage, for example to load data from external cloud storage:

  1. Select the Load files from external stage option.

  2. Select the + next to the Stage dropdown list.

  3. Select the supported cloud storage service where your files are located.

  4. Select Next.

  5. Complete the fields to describe your stage. For more information, refer to CREATE STAGE.

  6. Select Finish.

    Your new stage is automatically selected from the Stage dropdown list.

  7. (Optional) Specify a path to the files in the stage.

  8. Select Next.

Finish loading data

After you select the files to load, finish loading data into your table.

Note

If your warehouse is not running when you finish loading data, you must wait for the warehouse to resume (up to 5 minutes) before data is loaded.

To finish loading data, do the following:

  1. Select an existing named file format from the dropdown list, or create one.

    To create a file format:

    1. Select the + next to the dropdown list.

    2. Fill in the fields to match the format of your data files. For descriptions of the options, refer to CREATE FILE FORMAT.

    3. Select Finish.

    Your new named file format is automatically selected from the dropdown list.

  2. Determine how you want to handle errors that occur when the data is loaded:

    Snowflake loads the data into your selected table using the warehouse you selected.

  3. Select OK to close the Load Data wizard.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4