Skip to content

Increment / Counter

Type Registry

Increment / Counter

representation.numeric.increment

Counter value that increases by fixed steps (often 1). May appear as row numbers, sequence IDs, or generation numbers. Broad categorization.

Domain representationnumeric
Casts to BIGINT
Scope broad_numbers

Try it

CLI
$ finetype infer -i "1"
→ representation.numeric.increment

DuckDB

Detect
SELECT finetype('1');
-- → 'representation.numeric.increment'
Cast expression
CAST({col} AS BIGINT)
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS BIGINT) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'representation.numeric.increment';

JSON Schema

finetype schema representation.numeric.increment
{
  "$id": "https://noon.sh/schemas/representation.numeric.increment",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Counter value that increases by fixed steps (often 1). May appear as row numbers, sequence IDs, or generation numbers. Broad categorization.",
  "examples": [
    "1",
    "2",
    "3"
  ],
  "pattern": "^[0-9]+$",
  "title": "Increment / Counter",
  "type": "string"
}

Examples

123

Also known as

countersequenceid

Types in representation