message: add test for relation.query, producing a non-select query
diff: @@ -57,6 +57,14 @@ class TestRAPIQuery(object):
  with pytest.raises(duckdb.InvalidInputException):
  rel.insert([5])
  + def test_query_non_select(self):
  + con = duckdb.connect()
  + rel = con.query("select [1,2,3,4]");
  + rel.query("relation", "create table tbl as select * from relation")
  +
  + result = con.execute("select * from tbl").fetchall()
  + assert result == [([1,2,3,4],)]
  +
  def test_query_table_unrelated(self, tbl_table):
  con = duckdb.default_connection
  rel = con.table("tbl")
  @@ -65,12 +73,3 @@ class TestRAPIQuery(object):
  result = rel.execute()
  assert(result.fetchall() == [(5,)])
  - def test_query_broken(self, tbl_table):
  - con = duckdb.default_connection
  - rel = con.query("select i from range(10000) tbl(i)")
  -
  - with pytest.raises(duckdb.InvalidInputException):
  - rel = rel.query("x", "insert into tbl VALUES(5)")
  - result = rel.execute()
  - # The query has no result, so the original relation wasn't executed in the last `rel.query` call
  - assert(len(result.fetchall()) == 10000)
  