Ray's Knowledge Base
Unlock

Path-schema time units come from roles rather than time_scale

DecisionVerified 30 Sep 2026Holds project: dftracer-utils
Decision. The context, the choice, why, and the options that were turned down.

Context#

Path-schema roles already declare time units.

Decision#

Reject time_scale on a path schema with an error directing the caller to declare the unit in the schema. Return times in role units and convert duql duration literals to those units.

Why#

A second unit setting can conflict with the role declaration. Observer inbox 5f2574cd39 records this constraint.

Rejected options#

Do not apply a separate time_scale override on top of role units.

Also found by searching

  • path schema query with time_scale=1e-6 -> error: declare the time unit in the schema
  • my time_scale option is rejected for a path-schema trace
  • how do I set the time unit for path-schema traces in dftracer-utils?
  • path-schema role units vs time_scale override, duration literals converted to role units
  • error when setting time_scale on a path schema, tells me to declare the unit in the schema
  • how do I change time units for path-schema query results in duql?
  • duql duration literal conversion with path schema roles and time_scale override
  • why does path schema reject time_scale, where do time units come from