tzstrliterals.sql 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. select
  2. cast(Date32("-144169-01-01") as string),
  3. TzDate32("-144169-01-01,UTC"),
  4. TzDate32("-144169-01-02,Europe/Moscow"),
  5. TzDate32("-144169-01-01,America/Los_Angeles"),
  6. cast(Date32("148107-12-31") as string),
  7. TzDate32("148107-12-31,UTC"),
  8. TzDate32("148108-01-01,Europe/Moscow"),
  9. TzDate32("148107-12-31,America/Los_Angeles"),
  10. cast(Date32("1-01-01") as string),
  11. TzDate32("1-01-01,UTC"),
  12. TzDate32("1-01-02,Europe/Moscow"),
  13. cast(Date32("-1-12-31") as string),
  14. TzDate32("-1-12-31,UTC"),
  15. TzDate32("1-01-01,Europe/Moscow");
  16. select
  17. cast(Datetime64("-144169-01-01T00:00:00Z") as string),
  18. TzDatetime64("-144169-01-01T00:00:00,UTC"),
  19. TzDatetime64("-144169-01-01T02:30:17,Europe/Moscow"),
  20. TzDatetime64("-144170-12-31T16:07:02,America/Los_Angeles"),
  21. cast(Datetime64("148107-12-31T23:59:59Z") as string),
  22. TzDatetime64("148107-12-31T23:59:59,UTC"),
  23. TzDatetime64("148108-01-01T02:59:59,Europe/Moscow"),
  24. TzDatetime64("148107-12-31T15:59:59,America/Los_Angeles"),
  25. cast(Datetime64("1-01-01T00:00:00Z") as string),
  26. TzDatetime64("1-01-01T00:00:00,UTC"),
  27. TzDatetime64("1-01-01T02:30:17,Europe/Moscow"),
  28. cast(Datetime64("-1-12-31T23:59:59Z") as string),
  29. TzDatetime64("-1-12-31T23:59:59,UTC"),
  30. TzDatetime64("1-01-01T02:30:16,Europe/Moscow");
  31. select
  32. cast(Timestamp64("-144169-01-01T00:00:00Z") as string),
  33. TzTimestamp64("-144169-01-01T00:00:00,UTC"),
  34. TzTimestamp64("-144169-01-01T02:30:17,Europe/Moscow"),
  35. TzTimestamp64("-144170-12-31T16:07:02,America/Los_Angeles"),
  36. cast(Timestamp64("148107-12-31T23:59:59.999999Z") as string),
  37. TzTimestamp64("148107-12-31T23:59:59.999999,UTC"),
  38. TzTimestamp64("148108-01-01T02:59:59.999999,Europe/Moscow"),
  39. TzTimestamp64("148107-12-31T15:59:59.999999,America/Los_Angeles"),
  40. cast(Timestamp64("1-01-01T00:00:00Z") as string),
  41. TzTimestamp64("1-01-01T00:00:00,UTC"),
  42. TzTimestamp64("1-01-01T02:30:17,Europe/Moscow"),
  43. cast(Timestamp64("-1-12-31T23:59:59.999999Z") as string),
  44. TzTimestamp64("-1-12-31T23:59:59.999999,UTC"),
  45. TzTimestamp64("1-01-01T02:30:16.999999,Europe/Moscow");