value_inspect

Kind, schema, hash and size of any value.

QueryDeterministic

Flags

Flag Value
Kind query: reads values
Rows one result, not a table
Deterministic yes
Order matters no
Decomposable no
Makes no value

Parameters

Parameter Type Required Notes
value reference yes A value's reference.
response_format "concise" | "detailed" no The byte budget: 64 KiB concise, 512 KiB detailed.

Example

Over the example tables reg; ${input:name} is an input's reference and ${verb} the value an earlier call made.

JSON
split_make {
  "table": "${input:reg}",
  "kind": "random",
  "seed": 7
}

value_inspect {
  "value": "${split_make}"
}

Result

a split of 2729 bytes

JSON
{
  "ref": "sha256:bcf7ab9c8e4992dcfa1ed670dd74e18713fd94413d52357d2e7590ab72a72906",
  "kind": "split",
  "bytes": 2729,
  "spec": {
    "dedupe": false,
    "fractions": {
      "test": 0.2,
      "train": 0.8
    },
    "kind": "random",
    "seed": 7
  },
  "roles": [
    "train",
    "test"
  ],
  "folds": 0
}

Diagnostics

A refusal comes back as ok: false with coded diagnostics; every code, with its fix, is on the diagnostics page. A parameter that does not match the schema above is ARG_INVALID, with the parameter's path.