(self, vector)
| 46 | and v.get_value('table_format').compression_codec == 'none') |
| 47 | |
| 48 | def test_exprs(self, vector): |
| 49 | # Remove 'exec_single_node_rows_threshold' option so we can set it at .test file. |
| 50 | # Revisit this if 'exec_single_node_rows_threshold' dimension size increase. |
| 51 | vector.unset_exec_option('exec_single_node_rows_threshold') |
| 52 | # TODO: Enable some of these tests for Avro if possible |
| 53 | # Don't attempt to evaluate timestamp expressions with Avro tables (which don't |
| 54 | # support a timestamp type)" |
| 55 | table_format = vector.get_value('table_format') |
| 56 | if table_format.file_format == 'avro': |
| 57 | pytest.skip() |
| 58 | if table_format.file_format == 'hbase': |
| 59 | pytest.xfail("A lot of queries check for NULLs, which hbase does not recognize") |
| 60 | if table_format.file_format == 'kudu': |
| 61 | # Can't load LikeTbl without KUDU-1570. |
| 62 | pytest.xfail("Need support for Kudu tables with nullable PKs (KUDU-1570)") |
| 63 | self.run_test_case('QueryTest/exprs', vector) |
| 64 | |
| 65 | # This will change the current database to matching table format and then execute |
| 66 | # select current_database(). An error will be thrown if multiple values are returned. |
| 67 | current_db = self.execute_scalar('select current_database()', vector=vector) |
| 68 | assert current_db == QueryTestSectionReader.get_db_name(table_format) |
| 69 | |
| 70 | def test_special_strings(self, vector): |
| 71 | """Test handling of expressions with "special" strings.""" |
nothing calls this directly
no test coverage detected