UUIDs, INET, MACADDR expressions

Expressions of miscellaneous other types.

uuid

ibis.uuid(value=None, /)

Return or generate a UUID value.

Parameters

Name Type Description Default
value str | pyuuid.UUID | None A uuid.UUID object or a UUID str such as ‘b41c7dfd-1513-4358-917e-9ea322b0d3c5’. If None, a random UUIDv4 is generated, similar to uuid.uuid4() from the Python standard library. None

Examples

>>> from ibis.interactive import *
>>> ibis.uuid()
┌──────────────────────────────────────┐
│ 6fbfeee8-7675-4420-a92e-d83d83a57c71 │
└──────────────────────────────────────┘
>>> ibis.uuid("b41c7dfd-1513-4358-917e-9ea322b0d3c5")
┌──────────────────────────────────────┐
│ b41c7dfd-1513-4358-917e-9ea322b0d3c5 │
└──────────────────────────────────────┘

Returns

Name Type Description
UUIDScalar Random UUID value expression

UUIDValue

UUIDValue(arg)

INETValue

INETValue(arg)

MACADDRValue

MACADDRValue(arg)
Back to top