check-from-v0.27.0-interval-literals.td 792 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. > SELECT * FROM postgres_interval1;
  10. "1 year 2 months 3 days 14:42:07.8"
  11. > SELECT * FROM postgres_interval2;
  12. "1 year 2 months 3 days 14:42:07.8"
  13. > SELECT * FROM interval_second;
  14. 00:02:03
  15. > SELECT * FROM interval_minute;
  16. 02:03:00
  17. > SELECT * FROM interval_hour;
  18. "123:00:00"
  19. > SELECT * FROM interval_day;
  20. "123 days"
  21. > SELECT * FROM interval_month;
  22. "10 years 3 months"
  23. > SELECT * FROM interval_year;
  24. "123 years"