Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Join Tables

data.join_tables

ProductionBounded custom (Class B)Deterministicstrictfastv1.0.0
No network

Overview

When you send a left table, a right table, and join keys, we combine them with inner, left, right, or full semantics — preserving input order, resolving column name collisions by policy, and capping output before a Cartesian explosion. Keys are compared as-is (no type coercion). Do not use this for fuzzy matching or unbounded cross joins.

Silent cardinality surprises and column collisions break pipelines. You pick the join type and collision policy — we stay predictable.

Reliability

STRICT and deterministic; input order is preserved. Validation errors (not retryable — fix input): unequal or empty leftKey/rightKey; invalid joinType; column name collisions when collisionPolicy is error; join output exceeds maxOutputRows; either side over 200,000 rows. With prefix_right, colliding right columns appear prefixed (see warnings).

Context footprint

Returns joined rows plus left/right counts, unmatched counts, and warnings. A successful call costs 1 execution credit.

When to use it

When both tables are in memory and keys match exactly.

For fuzzy matching, type coercion, or joins larger than the row caps.

Scope

Note
Joins two in-memory tables by key with explicit, deterministic semantics.

Non-goals

  • Does not coerce key types
  • Does not fuzzy-match keys
  • Does not produce unbounded Cartesian output
  • Does not read files directly

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

data-transformation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input195.3 KB

How we handle your data

Sensitive output possible
What this means

This skill may receive sensitive content and may return submitted, transformed, extracted, or reformatted content.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response may contain submitted or transformed content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
leftRowsarrayYesBounded array of 0 through 200000 input row objects keyed by column name, where missing keys count as null.
rightRowsarrayYesBounded array of 0 through 200000 input row objects keyed by column name, where missing keys count as null.
leftKeyarrayYesBounded non-empty array of join-key column names compared position by position.
rightKeyarrayYesBounded non-empty array of join-key column names compared position by position.
joinTypestringYesJoin semantics applied to unmatched rows.
rightPrefixstringNoPrefix applied to colliding right columns; omit it for right_.
collisionPolicystringNoHow overlapping column names are handled; omit it for prefix_right.
maxOutputRowsintegerNoOutput cap before the join stops; omit it for 100000.

Output schema

FieldTypeRequiredDescription
rowsarrayYesBounded array of 0 through 1000000 result row objects keyed by column name after this skill transformed the table.
leftRowCountintegerYesHow many left input rows were supplied.
rightRowCountintegerYesHow many right input rows were supplied.
outputRowCountintegerYesHow many joined rows were returned.
unmatchedLeftintegerYesHow many left rows found no right partner.
unmatchedRightintegerYesHow many right rows found no left partner.
warningsarrayYesBounded array of 0 through 16 closed warnings with code and message.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"data.join_tables","input":{"leftRows":[{"id":1,"name":"A"}],"rightRows":[{"id":1,"score":9}],"leftKey":["id"],"rightKey":["id"],"joinType":"inner"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("data.join_tables", {"leftRows":[{"id":1,"name":"A"}],"leftKey":["id"],"rightRows":[{"score":9,"id":1}],"rightKey":["id"],"joinType":"inner"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not coerce key types
  • Does not fuzzy-match keys
  • Does not produce unbounded Cartesian output
  • Does not read files directly
  • Fuzzy or approximate key matching
  • Streaming joins on unbounded data

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "data.join_tables",
  "input": {
    "leftRows": [
      {
        "id": 1,
        "name": "A"
      }
    ],
    "leftKey": [
      "id"
    ],
    "rightRows": [
      {
        "score": 9,
        "id": 1
      }
    ],
    "rightKey": [
      "id"
    ],
    "joinType": "inner"
  }
}

Examples

Inner join on id with column prefix

Inputjson
{
  "leftRows": [
    {
      "id": 1,
      "name": "A"
    }
  ],
  "leftKey": [
    "id"
  ],
  "rightRows": [
    {
      "score": 9,
      "id": 1
    }
  ],
  "rightKey": [
    "id"
  ],
  "joinType": "inner"
}
Expected outputjson
{
  "unmatchedLeft": 0,
  "rows": [
    {
      "id": 1,
      "right_id": 1,
      "score": 9,
      "name": "A"
    }
  ],
  "rightRowCount": 1,
  "unmatchedRight": 0,
  "leftRowCount": 1,
  "warnings": [
    {
      "message": "Right columns prefixed with 'right_': [id]",
      "code": "COLUMN_COLLISION"
    }
  ],
  "outputRowCount": 1
}

Left join keeps unmatched left rows

Inputjson
{
  "leftRows": [
    {
      "id": 1
    },
    {
      "id": 2
    }
  ],
  "leftKey": [
    "id"
  ],
  "rightRows": [
    {
      "score": 9,
      "id": 1
    }
  ],
  "rightKey": [
    "id"
  ],
  "joinType": "left"
}
Expected outputjson
{
  "unmatchedLeft": 1,
  "rows": [
    {
      "score": 9,
      "id": 1,
      "right_id": 1
    },
    {
      "id": 2
    }
  ],
  "rightRowCount": 1,
  "unmatchedRight": 0,
  "leftRowCount": 2,
  "warnings": [
    {
      "message": "Right columns prefixed with 'right_': [id]",
      "code": "COLUMN_COLLISION"
    }
  ],
  "outputRowCount": 2
}
  • Combine CSV or API exports by id
  • Enrich records with lookup columns
  • Left-join facts to a dimension table

Avoid for

  • Fuzzy or approximate key matching
  • Streaming joins on unbounded data

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

transformationjoindata