Skip to content

Write access ​

By default, Supersimple only reads from your database. With write access, Supersimple can also create tables in a specific schema that you choose on a connection, called the write schema. Supersimple uses it for:

  • Uploaded files. CSV and Parquet files you upload are stored as tables in the write schema, so you can combine them with your data models on the same connection.
  • AI functions in formulas work only if write access is enabled. AI function answers are stored in the write schema, so the same value is not asked about twice and can be joined together with rest of your data.

Supersimple only creates tables inside the write schema. It never changes your other schemas or tables.

Supported databases ​

DatabaseSetting nameValue
PostgreSQLWrite schemaschema
BigQueryWrite datasetdataset or project.dataset
SnowflakeWrite schemaSCHEMA or DATABASE.SCHEMA
ClickHouseWrite databasedatabase

On BigQuery, a dataset without a project is looked up in the project of the connection's service account. On Snowflake, a schema without a database is looked up in the connection's database.

Set up write access ​

1. Create the schema and grant access ​

Create a schema that is used only by Supersimple and allow connection user to create tables in it. Supersimple does not create that schema by itself automatically.

sql
CREATE SCHEMA supersimple_write;
GRANT USAGE, CREATE ON SCHEMA supersimple_write TO supersimple;

Replace supersimple with the user in your connection URL. The tables Supersimple creates are owned by that user, so no other grants are needed.

2. Configure the write schema in Supersimple ​

  1. Open the connection settings and edit the connection under Database connections.
  2. Under Write access, select Set up.
  3. Enter the name of the schema, dataset or database you created, and select Save.
Configuring write schema settings in database connection dialog
Configuring write schema settings in database connection dialog

The name is case-sensitive and must match the schema exactly. On Snowflake, a schema created without quotes has an upper case name, such as ANALYTICS.SUPERSIMPLE_WRITE. On PostgreSQL it is lower case.

Once set, the write schema name can be changed but not removed. Before changing the schema name, follow the steps above to make sure the schema exists before modifying connection settings.

Which write schema is used ​

An account stores uploaded files in one write schema: the first one that was set up on any of its connections. The settings of every other connection show where uploaded data is written. To store new uploads on a different connection, contact support.

Modifying write access does not move existing data. When you change the write schema, new tables are created in the new one. Tables that already exist stay in the old schema and are still read from there, so keep the old schema as long as that data is being used.

What Supersimple creates ​

TableContents
dataset_file_<id>One table per uploaded file, with the file's columns. Uploading a file with the same name to the same dataset creates a new table and drops the old one. Upper case on Snowflake.
ai_answersAnswers given by AI functions. It stores a hash of each value that was asked about, not the value itself, along with the answer and its confidence.

Each table has a description that says Supersimple created it, so you can tell these tables apart in your own tools. They are regular tables: you can query them yourself, and your database bills their storage and queries like any other table.

Combining uploaded data with your data ​

Uploaded data that is stored on a connection can be combined with the data models and other uploaded data on that same connection. Use Combine on the uploaded block, as with any other block.

Without write access, an uploaded file can only be combined with other tables of the same upload. As with data models, data on different connections cannot be combined in one query.