---
cases:
  - data:
    modules:
      - |
        package generated

        p = __local0__ {
          __local1__ = 1582977600 * 1000
          __local2__ = __local1__ * 1000
          __local3__ = __local2__ * 1000
          __local4__ = __local3__ * 1000
          time.weekday(__local4__, __local5__)
          __local0__ = __local5__
        }
    note: time/weekday too big
    query: data.generated.p = x
    want_error: timestamp too big
    want_error_code: eval_builtin_error
    strict_error: true
