MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestClickHouseGlobalIn

Function TestClickHouseGlobalIn

pkg/sql/parser/clickhouse_test.go:112–118  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

110}
111
112func TestClickHouseGlobalIn(t *testing.T) {
113 sql := `SELECT id FROM orders WHERE id GLOBAL IN (SELECT id FROM users)`
114 _, err := parser.ParseWithDialect(sql, keywords.DialectClickHouse)
115 if err != nil {
116 t.Fatalf("unexpected error parsing GLOBAL IN: %v", err)
117 }
118}
119
120func TestClickHouseFinalWithWhere(t *testing.T) {
121 sql := `SELECT * FROM orders FINAL WHERE id > 5`

Callers

nothing calls this directly

Calls 2

ParseWithDialectFunction · 0.92
FatalfMethod · 0.65

Tested by

no test coverage detected