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

Function TestClickHouseGlobalJoin

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

Source from the content-addressed store, hash-verified

102}
103
104func TestClickHouseGlobalJoin(t *testing.T) {
105 sql := `SELECT t1.id, t2.name FROM t1 GLOBAL JOIN t2 ON t1.id = t2.id`
106 _, err := parser.ParseWithDialect(sql, keywords.DialectClickHouse)
107 if err != nil {
108 t.Fatalf("unexpected error parsing GLOBAL JOIN: %v", err)
109 }
110}
111
112func TestClickHouseGlobalIn(t *testing.T) {
113 sql := `SELECT id FROM orders WHERE id GLOBAL IN (SELECT id FROM users)`

Callers

nothing calls this directly

Calls 2

ParseWithDialectFunction · 0.92
FatalfMethod · 0.65

Tested by

no test coverage detected