check-from-v0.131.0-alter-table.td 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. > SHOW CREATE TABLE alter_table_t1;
  10. materialize.public.alter_table_t1 "CREATE TABLE materialize.public.alter_table_t1 (a pg_catalog.int4, b pg_catalog.text VERSION ADDED 1, c pg_catalog.int8 VERSION ADDED 2);"
  11. > SELECT * FROM alter_table_t1 ORDER BY a DESC;
  12. <null> <null> <null>
  13. 600 orange <null>
  14. 500 apple 101
  15. 400 world <null>
  16. 300 <null> <null>
  17. 200 hello <null>
  18. 100 <null> <null>
  19. > SELECT * FROM alter_table_t1_v1 ORDER BY a DESC;
  20. <null>
  21. 600
  22. 500
  23. 400
  24. 300
  25. 200
  26. 100
  27. > SELECT * FROM alter_table_t1_mv1 ORDER BY a DESC;
  28. <null>
  29. 600
  30. 500
  31. 400
  32. 300
  33. 200
  34. 100
  35. > SELECT * FROM alter_table_t1_v2 ORDER BY a DESC;
  36. <null> <null>
  37. 600 orange
  38. 500 apple
  39. 400 world
  40. 300 <null>
  41. 200 hello
  42. 100 <null>
  43. > SELECT * FROM alter_table_t1_mv2 ORDER BY a DESC;
  44. <null>
  45. 600
  46. 500
  47. 400
  48. 300
  49. 200
  50. 100