Data Resource - Excel

Data Resource - Excel

About

xlsx or xls are supported tabular file data resource.

Attributes

An Excel file has the following attributes.

Name Default Value Description
HEADER_ROW_ID 0 The row id where the header is located (0 means no header and 1 the first line)
SHEET_NAME The sheet name (Optional, first sheet by default if not set)
TIMESTAMP_FORMAT yyyy-MM-dd HH:mm:ss The timestamp format (ie Format Cells > Number > Custom)
DATE_FORMAT yyyy-MM-dd The date format (ie Format Cells > Number > Custom)

In Excel, dates are numeric cell with an applied format, when we write:

  • date: we apply the DATE_FORMAT format
  • timestamp: we apply the TIMESTAMP_FORMAT format

Type supported

Excel files supports natively the following SQL data type:

We returns

  • a Date if the format is at the day level (ie YYYY/MM/DD)
  • and Timestamp otherwise

We enforce the type on the whole column even if Excel supports the type by column.

During a transfer, we support all data type. Ie if the target column is:

  • a Integer, the Decimal value will be transformed into a Integer
  • a Time, the Varchar value 08:00 will be transformed in Time



Related HowTo
Undraw Environment
How to read and write an Excel file?

This howto will demonstrate you how to read and write to an Excel resource. To following this howto, you should have followed the getting started guide to have knowledge of: Resource creation...
Undraw Environment
Tabul - How to load a CSV file into a SQL table

How to upload a CSV file into a SQL table in two steps

Task Runner