Skip to content
Transformations Updated November 12, 2026

Input mapping options

Input mapping options: the tables and files a transformation reads, filters, data types, load types (CLONE, COPY, VIEW), read-only input mapping and the _timestamp column.

Every option of a transformation’s input mapping: which Storage tables and files it reads and how they are loaded. For what mapping is and why it exists, see How input and output mapping work; for the results side, see Output mapping options.

A table input mapping copies the selected Storage tables to the transformation’s staging area, as database tables or as CSV files depending on the backend (see Input mapping). If you have not selected any tables and read-only input mappings are enabled, you can access the tables automatically in the workspace. In this case the tables are not copied.

Table Input mapping

See an example of setting up an input mapping in our tutorial — in the UI tab.

  • Source — Select a table or a bucket in Storage as the source table for your transformation. If you select a bucket, it is the equivalent of selecting all tables currently present in the bucket. It does not automatically add future tables to the selection.
  • File name / Table Name — Enter the destination name of the mapping that is the Source table/file name to be used inside the transformation. This is an arbitrary name you’d like to use as a reference for the table inside the transformation script (it fills in automatically, but it can be changed). For File Staging, it is a good idea to add the .csv extension. For Database Staging, the table name is automatically quoted, which means you can use an arbitrary name. It also means that they may be case sensitive, for instance, if the destination is in Snowflake staging.
  • Columns — Select specific columns if you do not want to import them all; this saves processing time for larger tables.
  • Changed in last — If you use incremental processing, this comes in handy; import only rows changed or created within the selected time period. The supported time dimensions are minutes, hours, and days.
  • Data filter — Filter source rows to the rows that match this single-column multiple-values filter. When used together with Changed in last, the returned rows must match both conditions.
  • Data types — Configure data types.

The data types option allows you to configure settings of data types for the destination table. Data types are applicable only for destinations in database staging. Select User defined to configure data types for individual columns. The types are pre-configured with data types stored in the table metadata. The Type, Length, and Nullable options define the destination table structure in the staging database.

The option Convert empty values to null adds additional processing which is particularly important for non-string columns. All data in Storage tables are stored in string columns, and empty values (be it true NULL values, or empty strings) are stored as empty strings. When converting such values back to, for example, INTEGER or TIMESTAMP, they have to be converted to true SQL NULL values to be successfully inserted.

Data Types Setting

The pre-set data types are only suggestions, you can change them to your liking. You can also use the three dots menu to bulk set the types. Beware, however, that if a column contains values not matching the type, the entire load (and transformation) will fail. In such a case, it’s reasonable to revert to VARCHAR types — for example, by setting Data types to None.

When working with large tables, it may become important to understand how the tables are loaded into a staging database. Keboola uses three loading strategies — COPY, CLONE, and VIEW — plus an AUTO mode (the default) that picks the best available strategy for each table:

  • CLONEa highly optimized operation that loads an arbitrarily large table in near-constant time, because it physically moves no data. CLONE can’t be combined with filters, data type configurations, or incremental loading. It is supported on Snowflake and BigQuery backends.
  • COPYa full physical copy of the data into the staging database. Always available; used when neither CLONE nor VIEW can be applied (for example, when filters or data types are configured).
  • VIEWloads the table as a read-only view instead of copying any data; the data is read live from its source location. Used for linked, external, and alias tables.

You can set the strategy per table with the Load type option in the input mapping (Auto, Copy, Clone, or View):

Load type options in the input mapping

How AUTO decides. AUTO prefers CLONE whenever the table can be cloned. On BigQuery, tables that can’t be cloned — linked, external, and alias tables — are loaded as a read-only VIEW. When filters, data type configurations, or incremental loading are used (which neither CLONE nor VIEW supports), AUTO falls back to COPY. If you explicitly request CLONE for a table that can’t be cloned (for example, a linked-bucket table on BigQuery, or any table with incompatible options such as incremental), the request fails.

In the input mapping, tables that will be loaded as a read-only view are marked with a view icon:

Read-only view indicator in the input mapping

This might present a dilemma when loading huge tables. A logical approach when trying to speed up loading a large table would be setting data types and adding filters to copy only the necessary ones. You might find out, however, that at some point, it’s actually faster to remove the filters and data types, take advantage of the CLONE loading type, and apply the filters inside the transformation. Also, when you need more complex filters (filtering by multiple columns or ranges), it’s best to remove the filter completely from the input mapping, take advantage of the clone loading, and do the filtering inside of the transformation.

You can verify the table loading type in the events — copy table:

Table Copy

Clone table:

Table Clone

The CLONE mapping will execute almost instantly for a table of any size (typically under 10 seconds) as it physically does not move any data.

A cloned table is an exact copy of the source table, including the _timestamp system column. This column is used internally by Keboola for comparison with the value of the Changed in last filter.

The column type differs by backend: TIMESTAMP_NTZ(9) on Snowflake and TIMESTAMP on BigQuery. The value contains the last change of the row. You can use this column to set up incremental processing, i.e., to replace the role of the Changed in Last filter in the input mapping (which you can’t use with a clone mapping).

Important: The _timestamp column cannot be imported back to Storage.

When you attempt to do so, you’ll get the following error:

Failed to process output mapping: Failed to load table "out.c-test.opportunity":
Invalid columns: _timestamp: Only alphanumeric characters and underscores are allowed in the column name.
Underscore is not allowed on the beginning.

If you are not using the _timestamp column in your transformation, you can either use the dropTimestampColumn option in the input mapping to exclude it automatically, or drop it manually:

In Snowflake:

ALTER TABLE "my-table" DROP COLUMN "_timestamp";

In BigQuery:

ALTER TABLE my-table DROP COLUMN _timestamp;

The _timestamp column is not present on tables loaded using the copy method.

Note: You must be using new transformations to see this feature.

When read-only input mappings are enabled, you automatically have read access to all buckets and tables in the project (this also applies to linked buckets). Alias tables are materialized as database VIEWs and are fully accessible via read-only input mappings — including filtered aliases and aliases from linked buckets.

There is no need to set anything for a read-only input mapping in transformations, all tables in Storage are automatically accessible in the transformation. This also applies to linked buckets. Note that buckets and tables belong to another project, so you need to access the tables using the fully qualified identifier, including the database and schema, in the source project.

Users can enable or disable read-only access to the storage in user workspaces and the Snowflake data destination. If read-only access is disabled, users must define an input mapping as they typically do.

Storage

You have read access to all the tables in your project’s Storage directly on the underlying backend. However, this means you need to use the internal ID of a bucket (in.c-main instead of main as you see in the UI).

Read Only Input Mapping in transformation

In the transformation code (Snowflake), we select from the table “in.c-main”.“users” and create a new table: create table "cities" as select "city" from "in.c-main"."users";. Depending on the backend, the SQL format is different. More info regarding access to individual tables depending on the backend can be found in the documentation of those individual backends ( Snowflake, BigQuery ).

As you can see, a read-only input mapping allows you to read a table created in Storage directly in the transformation.

Read Only Input Mapping Storage

The file input mapping process exports the selected files from file Storage and copies them to the staging Storage. Depending on the transformation, this can be either a drive local to the transformation or a remote storage such as Amazon S3 (opens in a new tab) or Azure Blob Storage (opens in a new tab). A file input mapping cannot operate with storage tables, but it comes in handy for processing files that cannot be converted to tables (binary files, malformed files, etc.) or, for example, to work with pre-trained models that you can use in a transformation.

File Input Mapping

  • Tags — tags used to select files.
  • Changed Since — the time range for selecting files. Either a static range (e.g. 30 minutes) or Since last successful run for incremental processing (see below). With a static range, a file must satisfy both the tags and the range to be selected.
  • Query (deprecated, do not use) — legacy option for a customized Elastic query (opens in a new tab).
  • Processed Tags (deprecated, do not use) — legacy option that assigned tags to input files after the transformation finished, used to process files incrementally.

Incremental processing is active when Changed Since is set to Since last successful run. In this mode, the configuration stores a reference to the newest file matching the specified tags. The next run continues with files newer than that reference, so the transformation is automatically fed only the files that have not yet been processed.

To manipulate the state — for example, to run a backfill — use Debug Mode → Update State to reset it.

Next: Output mapping options →

Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.