Skip to content

Commit c22b688

Browse files
committed
docs(eql,go): name the version-confined surfaces and the test that stores documents
build.sh's comment named only the range surface as confined to one EQL version; the JSON tree family (v4) and the SteVec SQL (v3) are confined too. The per-type PostgreSQL test skips JsonSearch, and its comment now names TestJSONDocumentsQueryAndReadInPostgres, which stores documents through the generated fields into an eql_v4_json_search column. Claude-Session: https://claude.ai/code/session_01N7bCqa3ZVJMcEE99RzVqEu
1 parent 02acc73 commit c22b688

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎languages/golang/encrypt/eql_postgres_test.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ func TestEQLTypesRoundTripAndQueryInPostgres(t *testing.T) {
114114
continue
115115
}
116116
// A document has operators of its own, not one query per index,
117-
// so it is not run here or counted: it is run in PostgreSQL with
118-
// the generated fields that store it.
117+
// so it is not run here or counted: TestJSONDocumentsQueryAndReadInPostgres
118+
// stores documents through the generated fields (the data plan)
119+
// into an eql_v4_json_search column and runs every operator there.
119120
if typ.Plaintext == "json" {
120121
continue
121122
}

‎packages/eql/tasks/build.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,11 @@ mv src/deps-ordered-v3.txt.tmp src/deps-ordered-v3.txt
9191
# writes nothing unless every file renders.
9292
#
9393
# Not every file belongs to every version. A file with a `-- ONLY EQL VERSION: N`
94-
# line belongs to version N alone: today the generated range query domains and
95-
# `between` (query_<T>_range_*.sql, ADR-0009 decision 7) are EQL v4 only.
94+
# line belongs to version N alone. Three surfaces carry one today: the
95+
# generated range query domains and `between` (query_<T>_range_*.sql, ADR-0009
96+
# decision 7) and the JSON tree family (src/v3/json_tree/) are EQL v4 only, and
97+
# the SteVec SQL (src/v3/json/) with the generated json_entry_<T> cross files is
98+
# EQL v3 only, since in v4 its domain names belong to the JSON tree family.
9699
# `eql-codegen select` drops the files that belong to the other version from the
97100
# install order, keeping the order of the rest, and `render` refuses to render a
98101
# file as a version it does not belong to, so nothing confined to v4 can reach

0 commit comments

Comments
 (0)