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()

┌──────────────────────────────────────┐
│ 62e85dcf-2892-4876-92d8-d07fd73797da │
└──────────────────────────────────────┘
>>> 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