planning_errors.slt 913 B

123456789101112131415161718192021222324
  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. # This file is for SQL planning errors only.
  10. # - Parse errors should live in the sql-parser test suite!
  11. # - Error semantics issues due to evaluation order live in `error_semantics.slt`
  12. query error VALUES expression in FROM clause must be surrounded by parentheses
  13. SELECT * FROM VALUES (1)
  14. query error Expected identifier, found number
  15. SELECT * FROM VALUES (1), (2)
  16. query error db error: ERROR: function "noexist" does not exist
  17. SELECT noexist()
  18. query error db error: ERROR: function "noexist" does not exist
  19. SELECT * FROM noexist()