Connectors and file drops

A connector moves data from a source system into a raw dataset in your open table storage, and carries approved edits back the other way. Connectors are delivered on request for ERPs, databases, plant floor protocols and historians, point of sale, lab systems, telematics, files, email and message streams. Each one runs either as a cloud worker or on an edge agent inside your network, and syncs by change data capture, incrementally or in full, depending on what the source allows

CatalogueERP, database, plant floor, point of sale, lab, logistics, files, plus generic REST and JDBC
5 modesChange data capture, incremental, full, streaming, file
72 hEdge agent outbox by default when the link to the platform is down
Both waysMost connectors also carry writeback to the source
Requirements
  • Owner role on the project that holds the connector to create it or change its tables, and Viewer to see its runs and health
  • Any access label you set on a source table held by you, and Owner role on the raw dataset it applies to
  • A source account whose credentials are stored in the platform vault or your secret manager; read access is enough unless the connector does writeback
  • Network reach from a cloud connector worker for sources on the internet or a peered cloud network, or an edge agent enrolled for the site for sources inside your network
  • For change data capture, the source's log enabled for it, such as SQL Server CDC or PostgreSQL logical replication

In the platform today

Twelve connector kinds and file drop ingestion run in the platform service with tests. Edge agents are built too, and so is inbound push: signed webhooks from a source system, and rows pushed by an integration, each landing in a raw table. Writeback to a system's own API is built as calls in systems.yaml, described on writeback. Everything else on this page, log-based change capture, the other systems in the catalogue below and writeback through connectors, is delivered on request

KindReadsSync modes
postgresA Postgres database, through DuckDB's postgres extensionIncremental, snapshot
restJSON over HTTP, with page, offset, token, next-link and Link header pagination; basic or OAuth2 client credentialsIncremental by cursor, snapshot
sqlAnything DuckDB can read: files, globs, Parquet folders, Delta tablesIncremental, snapshot
folderA local or mounted folderFiles
sftpAn SFTP serverFiles
odataOData v4 services, such as SAP S/4HANA OData v4 APIs, Business Central and Dynamics 365; basic or OAuth2 client credentialsIncremental by a modified-time property, change tracking with delta links, snapshot
kafkaKafka topics through a consumer group, with SASL and TLSA batch per run; offsets committed only after the rows land, so delivery is at least once and the key makes it idempotent
imapA mailbox folder over IMAP with TLS, opened read-only; password or OAuth2Incremental by UID, one row per message; attachments are listed, not stored
mysqlMySQL and MariaDB, through DuckDB's mysql extensionIncremental, snapshot
sqlserverSQL Server, encrypted by defaultIncremental, snapshot
shopifyOrders, order lines, products, variants, inventory levels and locations through the Shopify Admin REST API, with an access token or client credentials. Read onlyIncremental on updated_at, snapshot
squareOrders, order lines, inventory counts, locations and the catalogue through the Square APIs, with an access token or an OAuth refresh token. Read onlyIncremental on updated_at, snapshot
connectors:
  erp-db:
    name: ERP database
    kind: postgres
    host: erp-db.creamery.example
    port: 5432
    database: sources
    user: svc_markland_ro
    password: ${password}
    # environment variable names only; values are never stored
    secrets: { password: ERP_DB_PASSWORD }
    owner: plan.raman
    allowedGroups: [planning]
    schedule: { every: 15m }        # or { dailyAt: "06:00" }
    streams:
      - { id: parts, source: public.parts, table: raw.pg_parts,
          key: part_number, cursor: updated_at, lookback: 2h }
      - { id: vendors, source: public.vendors, table: raw.pg_vendors,
          key: vendor_id, mode: snapshot }
  • Incremental reads rows whose cursor column is after the stored cursor, or at or after it when the stream has a key, so rows sharing the last cursor value are not missed. Rows are upserted by key, or appended without one
  • Lookback: lookback: 2h on an incremental stream (or a number for a number cursor) reads again from that far before the stored cursor, so rows that land late with an older cursor value are not missed. It needs a key; rows that have not changed are not written again, and the cursor never moves back
  • Snapshot reads every row and compares it with the table: changed and new rows are upserted and rows that are gone are deleted, unless deletes: false. An empty snapshot is refused unless allowEmpty: true
  • Files lands each new file once, through the file ledger

Every write goes through the lake, so the raw table's change data feed records it, and the inserted, updated and deleted counts are read back from that feed. Each run is a row per stream in ops.connector_runs. Secrets come from environment variables only

File drops

A watched folder lands its files in one raw table. CSV and TSV, gzipped or not, JSON lines or a JSON array, Parquet and Excel workbooks are read with DuckDB, which infers the types. A file is loaded exactly once: the file ledger keeps its path, size, modification time and SHA-256, so the same file is never loaded twice and a changed file is loaded as a new version. A file uploaded through the API is also checked by content, so the same rows under another name are skipped

ingest:
  folders:
    vendor-prices:
      name: Vendor price lists
      path: volumes/landing/vendor-prices
      pattern: ["*.csv", "*.xlsx"]
      table: raw.vendor_prices
      # upsert by key; without a key rows are appended
      key: [vendor_id, part_number]
      columns: { unit_price: double }
      # add new columns; false sends their values to _rescued
      evolve: true
      timezone: America/Halifax
      # load or skip files already there on the first run
      existing: load
      owner: plan.raman
      allowedGroups: [planning, stores]
      schedule: { every: 5m }

Rows are fitted to the table's schema. A column the table has keeps its type, and a value that does not convert is set to null and kept as text in a _rescued JSON column. A new column is added, unless evolve is false. A load cut short is found on the next run, its rows removed by _file_id, and loaded again. Backfill loads files a folder skipped, retries failed ones, and with reload: true loads chosen files again

EndpointDoes
GET /api/v2/ingest/folders, /{id}, /{id}/files, /{id}/runsFolders the caller can see, the file ledger and runs
POST /api/v2/ingest/folders/{id}:run, :backfillLoads new files now, or backfills
POST /api/v2/ingest/folders/{id}/files?name=prices.csvUploads a file and loads it
GET /api/v2/connectors, /{id}, /{id}/runsConnectors and their runs
POST /api/v2/connectors/{id}:run, :testRuns streams now, optionally in full, or tests the connection

Schedules run on the same slots as scheduled automations, as the definition's owner, when the background scheduler is switched on, a service setting. Folders, uploads, connectors and edge agents have a screen in Data, then Ingestion. Delivered on request: log-based change capture, MES connectors, point-of-sale connectors beyond Shopify and Square, watching cloud storage buckets, and creating connectors through the API or the screen; connectors are defined in ontology.yaml

Inbound push

Some systems send their changes rather than wait to be read. inbound: in ontology.yaml takes two kinds of push, each into one raw table

inbound:
  erp-events:                                # POST /api/v2/inbound/erp-events
    table: raw.erp_events
    signature:
      header: X-Erp-Signature
      # environment variable names only; secretNext while rotating
      secret: INBOUND_ERP_SECRET
      algorithm: sha256                      # sha1, sha256 or sha512, as HMAC
      encoding: hex                          # or base64
      prefix: "sha256="
      signed: "{body}"                       # {body}, {url}, {header:Name} and literal text
      timestampHeader: X-Erp-Timestamp
      toleranceSeconds: 300
    deliveryId: { header: X-Erp-Delivery }   # or { field: id }; default: SHA-256 of the body
    fields: { topic: { header: X-Erp-Topic }, order_id: { field: order.id } }
  pos-sales:                                 # POST /api/v2/inbound/pos-sales/rows
    table: raw.pos_sales
    rows:
      users: [svc.pos]
      groups: [integrations]
      key: [sale_id]                         # upsert by key; without one, rows are appended
      columns: { sale_id: string, amount: double, sold_at: timestamp }
      maxRows: 5000
  • Signed webhooks need no sign-in: the signature is the check. The HMAC of the signed text under the secret, or the next secret during a rotation, must match the header, compared in constant time. A missing or wrong signature and a timestamp outside the tolerance answer 401, a body over maxBytes 413, and an unset secret 503
  • Each accepted delivery is one row with delivery_id, source, received_at, content_type, body and the fields columns. A delivery id already seen answers duplicate and writes nothing, so a sender's retries never make a second row. Deliveries always land on main
  • Rows come as a JSON array from the users and groups listed, or an administrator. Each row is checked against the table's schema, or columns before the first push; one bad row refuses the batch with 422 ROWS_INVALID, naming up to 20 rows and columns. Accepted rows are upserted on key, or appended, and the push is audited as inbound.rows
  • A push only lands rows. A pipeline with an onChange or landed trigger builds from them

How connectors work

A connector is a configuration, not a program you write. It names a source, the credentials to reach it, the tables, topics, endpoints or file paths to read, a sync mode for each, and a schedule. A connector host runs it. Cloud connector workers reach sources that are on the internet or in a cloud network you peer with. Edge agents run next to sources that are not, such as a plant historian or an OPC UA server on the plant floor, and push data out over an outbound-only connection

Every sync writes to a raw dataset: a Delta Lake table in the raw schema of your catalogue, with one row per source change and the source's own columns kept as they are. Nothing is cleaned or renamed at this stage. That is the job of pipelines, which turn raw datasets into the backing datasets of object types. Keeping raw data unmodified means you can always rebuild from it, and that lineage from a property back to a source column is never interrupted

Plant network OPC UA server Plant historian MQTT broker ERP database Edge agent · 72 h buffer Cloud and internet Point of sale · telematics · LIMS Cloud ERP · email · SFTP · S3 Kafka · REST APIs Edge gatewayTLS 1.3, agents connect out Cloud workersper-connector, autoscaled Raw datasets Delta Lake, one table per source table, topic or file pattern registered in Unity Catalog outbound only writeback
Edge agents never accept inbound connections. The platform sends them work, including writeback, over the channel the agent itself opened

Connector catalogue

The catalogue below lists the source systems connectors are delivered for on request, beside what the built kinds reach today. None of these is a certified connector. Sources not listed are meant to be reached through the generic database, REST or file connectors. On request, a connector can also write committed action edits back to its source through the writeback service, except for read-only sources such as plant historians and lab exports

CategorySystems, on requestBuilt today
ERPSAP S/4HANA, SAP ECC, Microsoft Dynamics 365 Finance and Supply Chain, Dynamics 365 Business Central, Oracle NetSuite, Oracle Fusion Cloud ERP, Sage Intacct, Acumatica, Epicor, QuickBooks OnlineOData v4 reads S/4HANA, Business Central and Dynamics 365
DatabaseOracle Database, SQL Server, PostgreSQL, MySQL and MariaDB, IBM Db2, MongoDB, generic JDBC and ODBCPostgreSQL, MySQL and MariaDB, and SQL Server, by cursor or snapshot
Plant floorOPC UA, MQTT including Sparkplug B, plant historians, Modbus TCP, MES, maintenance systemsOPC UA, MQTT and Modbus TCP through an edge agent
Point of sale and commerceSquare, Lightspeed Retail and Restaurant, ShopifyShopify and Square, read only
Lab and qualityLIMS over REST, LIMS exportsCSV exports through file drops
LogisticsFleet telematics, reefer unit telemetry, warehouse management, carrier and ferry schedules
EDIX12 and EDIFACT over AS2 or SFTP
WorkforceStaff scheduling
FilesSFTP and FTPS, Amazon S3, Azure Blob Storage, Google Cloud Storage, SharePoint and OneDrive, spreadsheetsSFTP, watched folders and file uploads
EmailIMAP mailboxes, Microsoft 365 mail, GmailIMAP, read only
StreamsApache Kafka, AMQP brokersKafka
APIsREST, GraphQL, inbound webhooksREST, OData v4 and inbound push
Data sharingDelta Sharing recipient

Sync modes

The built kinds read incrementally by cursor, by full snapshot or by file, as described under in the platform today, and Kafka reads a batch per run. On request, change data capture from database logs, which sees every change and every delete in commit order and puts the least load on the source

Edge agents

The built agent and what it reads are described under edge agents. It runs next to sources that are not on the internet and makes only outbound connections. When the link drops, it keeps reading and buffers to local disk, 72 hours by default, then sends the buffer in order before any new data. On request, a signed installer that enrols the agent with its own certificate and updates it from a release channel

Configuring a connector

Connectors are defined under connectors in ontology.yaml, as in the example under in the platform today. Credentials are never written in the configuration: the built kinds read them from the environment variables named in secrets, and a connector with an accessLabel is seen and run only by those who hold it. On request, connectors are configured in the console, credentials come from a vault or your own secret manager, and access labels set on a table carry to its raw dataset and everything built from it

Schema changes and types

Sources change their schemas. In the platform service today, a built connector or folder adds a new column to its raw table, or keeps its values in _rescued when evolve is false. The next pipeline build that reads the table records the change in ops.schema_changes, and an input contract on that pipeline stops the build until an editor accepts the new schema. On request, a policy per kind of change on each connector, such as pausing a table's sync when a column changes type

Writeback and health

Writeback to a system's own API is built as calls in systems.yaml, described on writeback. On request, the writeback service hands committed edits to the source's connector, which applies them through the source's own interface, such as a stored procedure, an API call or a dropped file, never by writing to the source's tables directly unless you configure exactly that

In the platform service today, dataset health learns each raw table's usual freshness and volume, and a monitor raises an alert when a table is late or a connector's runs keep failing. On request, freshness thresholds per table in observability, and stale source data shown on the objects it backs, so a planner looking at a shop's stock can see that the point of sale has not synced for 40 minutes

Limitations

  • Incremental syncs do not see hard deletes; use a snapshot where deletes matter
  • Renamed columns arrive as a new column, and the old one stops filling
  • Connectors write raw data as the source sent it; cleaning, renaming and joining happen only in pipelines
  • Writeback goes through the source's own interface, so a connector can only write what that interface and the source account allow, and a read-only account cannot write at all
  • Read-only sources, such as plant historians and file exports from a lab, cannot take writeback whatever the account allows
  • Batch sources cannot sync more often than once a minute from a cloud worker; faster updates need change data capture or streaming
  • An edge agent's buffer covers a fixed window; data not read from the source before the buffer fills is lost for the lowest-priority sources first

Related