Skip to main content

Source and Target

Source and Target gems define how Prophecy reads and writes data in your pipeline.

Source/Target Gem Drawer

There are two types of sources and targets:

caution

When deciding between tables and external sources, consider the primary SQL connection in your Prophecy fabric. Processing tables natively in the SQL warehouse will be fast, and processing external data is slower.
Do not create an external connection that duplicates the primary SQL warehouse connection in your fabric.

Tables

SQL

Tables are natively read from and written to the SQL warehouse that is configured as your primary SQL connection in a Prophecy fabric. You can add existing tables from your data warehouse to Prophecy, or you can create new tables directly in Prophecy.

NameDescriptionGem Type
TablePersistent storage of structured data in your SQL warehouse. Faster for frequent queries (indexed).Source or Target
ViewA virtual table that derives data dynamically from a query. Slower for complex queries (computed at runtime).Source or Target
SeedSmall CSV-format files that you can write directly in Prophecy.Source only

Once you have used a table in a project, you can easily reuse that table as a source. Find you tables in the project browser in the left sidebar.

External Sources and Targets

Prophecy Automate

To use data from outside of your SQL warehouse, you can use the following external sources and targets. This data is not persisted in Prophecy, but rather read through Prophecy.

External connections

To use external sources and targets, you need to set up the corresponding connections. Review the following connections that Prophecy provides.

Source gem connections

Table connections

The following connections support tabular sources and targets.

File connections

The following connections support file sources and targets.

Connection typeSupported file formats
Amazon S3CSV, JSON, XLSX, XML
SFTPCSV, JSON, XLSX, XML
Microsoft SharePointCSV, JSON, XLSX, XML
DatabricksCSV, JSON, XLSX, XML
SmartsheetXLSX