Repository navigation
Highlights
- Datasets: query a warehouse table through Wow's admission and governance. A dataset is a declared, table-like record set, such as an analyst's ClickHouse wide table. It is queried, scoped, masked and audited like an aggregate (#4116, #4120), served over
GET /dataset/{context}/{dataset}/schemaandPOST …/{count|list|paged|cursor|single|aggregation}from a new ClickHouse backend (wow-clickhouse, #4122, #4127), and takes part in ABAC through declared tag columns (#4133). Datasets join, change and leave at run time (#4153); platform-level datasets and named ClickHouse sources serve a whole warehouse (#4156). - A dataset registry and an analytics server.
wow-dataset-registry-*drafts a dataset from a table, reviews each field's sensitivity, and publishes or retires it (#4155).wow-analytics-serveris its own gateway over CoSec tokens, with a console that analyses any published dataset; it ships as a Docker image (#4182, #4183, #4185).wow-cosecreads the principal's ABAC tags from CoSec (#4177). - Aggregation windows computed by the server. A derived metric can read
TOTAL,RUNNING,RANKandPREVIOUS(period over period, year over year) over every group, not just the rows returned (#4169, #4170). MongoDB and ClickHouse compute the first three natively (#4173, #4179); the descriptor says which ones a storage offers (analysis.windows). - Group expanded elements by a field of their record. An aggregation group takes
scope: ROOT, so the events of a stream can be counted per day of the stream, on MongoDB and Elasticsearch (#4207, #4213). The descriptor says so (analysis.rootGroups). - The view engine derives definitions from the dataset directory and keeps them in step with it (#4159, #4160, #4163), and stores a tenant's wording over a dataset in the view store (#4205, #4206). New: the kanban (#4113), the previous period and the same period last year (#4194, #4202), the top N within each value of a dimension (#4196), running lines computed by Wow (#4175), dimensions over a record's own fields while elements are expanded (#4217), stepping through records from the detail (#4152), and ⌘S / 「/」 anywhere on the workbench (#4146).
Important
Existing REST routes, route ids, configuration, metric names and tags, header keys, storage formats and wire formats are those of 9.8.0, and 9.8.x and 9.9.0 nodes can run side by side. Everything new is additive: the dataset routes, the wow.query.datasets and wow.query.clickhouse.* properties, and the descriptor's analysis.windows and analysis.rootGroups. The breaking changes below are signatures of SPI and internal classes; applications that use only the starter and the public entry APIs recompile against 9.9.0 without source changes.
Breaking
Policy. Every breaking change in this release is a signature outside the compatibility scope of docs/compat-debt.md (@WowSpi, internal classes, or a constructor that gains a defaulted parameter), so there are no deprecation cycles or binary-only shims.
TypeScript
@ahoo-wang/wow-client
- Derived windows (#4172).
DerivedExpressionTypeandDerivedExpressiongain the window node types. Affects: code that switches exhaustively over a derived expression'stype. Migrate: handle or default the new types.
@ahoo-wang/wow-view-engine
RecordLayoutgains'kanban'(#4113). Affects: code that switches exhaustively over a record layout. Migrate: handle'kanban'or default it.- Derived lines (#4194).
DERIVED_KINDSandDerivedKindgain the two period comparisons,DerivedGapgains'unsupported',MarkWordsgains an optionalchangeFrom, andAnalysisEditorControllergainswindows. Affects: exhaustive switches over these unions, and hosts that implementAnalysisEditorControllerthemselves. Migrate: handle the new members. ANALYSIS_AUTO_RUN_MEMBERSgains'top'(#4196). Affects: code that lists the members itself. Migrate: none beyond an exhaustive switch.AnalysisScopegainsrootAggregations(#4217). Affects: code that builds anAnalysisScopeby hand rather than withanalysisScope(). Migrate: passnew Map().- Message wording (#4137, #4168).
label.write.unknownandruntime.query.forbiddenread differently; the keys are unchanged. Affects: hosts that override or assert these messages.
Kotlin / JVM
wow-query
- The dataset query model (#4116, #4120).
QueryModelSchema(…, profile),QuerySchemaCatalog(…, datasets),QueryBackendStorages(…, datasetFactory, datasets),SimpleQueryBackendProvider(…, dataset)andQueryModelCompiler.of(…, datasets)gain a trailing defaulted parameter.QueryModelProfile.identityField,payloadField,eventTimeFieldandsystemField()are nullable on the base class (the snapshot and event-stream profiles still return non-null).QueryModelProfile.requiredScopeandsystemField()are abstract on the sealed class, andQueryModelProfile.ofreturnsBuiltInQueryModelProfile. TheQueryModelSchema.profileextension is now a member. Affects: code that builds query backends, schema providers or the Catalog by hand, or reads a profile's fields through the base class. Migrate: recompile; handlenullwhere you read a profile throughQueryModelProfile; removeimport me.ahoo.wow.query.schema.profile. - Aggregation windows and root groups (#4169, #4207).
AnalysisDescriptor(…, windows, rootGroups)andAggregationSupport(…, windows, rootGroups)gain trailing defaulted parameters;AggregationGroup.Terms,.Histogram,.DateHistogramand.DatePartgain a trailingscope, and so do theterms,histogram,dateHistogramanddatePartfunctions ofAggregationQueryDsl. Affects: Java callers that pass every argument, and binaries compiled against 9.8. Migrate: recompile; Java callers add the new argument (nullforscope). - A ROOT group must lead the sort (#4207). With
elements, anAggregationQuerywhose effective sort puts ascope: ROOTgroup after an element group is refused on construction (groups with a ROOT scope must sort before the element groups.). This is new syntax, so no existing query is affected.
wow-spring-boot-starter
- Dataset serving (#4127).
QueryAutoConfiguration.querySchemaCatalog(…)takes the datasets and the dataset backend factory, andQueryProperties' constructor gainsdatasets. Affects: code that calls them directly. Migrate: recompile against the new signatures.
wow-tck
SnapshotQueryBackendSpecgainselementRootGroups(defaulttrue) and two root-group cases, and itssaveAggregationStatesandaggregationStatesareprotected(#4207, #4213). Affects: a backend that runs the spec and cannot group elements by a root field. Migrate: overrideelementRootGroups = falseand declareAggregationSupport.rootGroups = SupportMode.NONE.
Server behaviour
None. Every existing route, route id and wire format is unchanged. The new dataset routes, the descriptor's analysis.windows and analysis.rootGroups, and the query's scope and window nodes are additive. In a mixed 9.8 / 9.9 cluster, a 9.8 node answers a query that uses scope: ROOT or a window node with a validation error, and its descriptor offers neither, so a client that reads the descriptor (wow-client, the view engine) sends them only to a 9.9 node.
Pre-release changes
Signatures added after 9.8.0 and changed again before this release: QueryDatasetScope and QuerySchemaCatalog's datasets (#4133, #4153), the ClickHouse dataset storage bindings (#4156), the protected keepDefinitionsIn of the engine's resources, which now takes a registrar (#4160), and DatasetResources' constructor, which gains onWordingError (#4206).
Labelled by the public-surface check for additive or documentation-only changes, not breaking: #4128, #4149, #4155, #4159, #4161, #4163, #4165, #4185.
Behaviour changes
- An element-scope rejection says how to reach the field (#4124):
Field [x] requires its declared element scope: reach it through ELEMENT_MATCH in a filter, or expand it with the aggregation's elements.Act: nothing, unless you match on the old text. - A command wait that runs out of time says what it waited for (#4123):
Waiting for stage [PROJECTED] timed out after 10000ms.in place of Reactor's internal text. Act: nothing, unless you match on the old text. - ABAC's missing-tag message (#4133) reads
Query requires the principal's ABAC tags.in place ofSnapshot query requires…; the error code is unchanged. - Storage query backends register before the query fallbacks (#4164). An application on MongoDB or Elasticsearch whose auto-configuration order happened to register the unavailable fallback first now gets its storage backend. Act: nothing.
Fixes
- The starter could register the unavailable snapshot or event-stream query backend ahead of MongoDB's or Elasticsearch's, depending on auto-configuration order (#4164).
- wow-client, wow-react and wow-generator: the open P2 items of the 9.2.0 review (#4107, #4109, #4110).
- The view engine: many fixes to charts, the workbench, the date editor and the kanban (#4132, #4134, #4136, #4137, #4138, #4150, #4181, #4184, #4188, #4193, #4195, #4197, #4198, #4200, #4203).
Deprecations
None.
TypeScript packages
Install or upgrade with a ~9.9 range: a minor release may break (see version ranges). Every package in PUBLISHED (.github/scripts/publish-npm.mjs) ships together at 9.9.0; the packages peer on each other with ~, so upgrade them together. The fetcher peer ranges are unchanged.
@ahoo-wang/wow-client
DatasetQueryClientfor the dataset routes (#4128) andDatasetDirectoryClientfor the directory (#4160).- Derived windows (
TOTAL,RUNNING,RANK,PREVIOUS) andanalysis.windows(#4172);PREVIOUS_UNSHIFTABLEinQueryErrorCodes(#4170). AggregationGroupScope, a group'sscopeand the builders'scopeoption,analysis.rootGroups, and the client-side admission of both root-group rules (#4207).
@ahoo-wang/wow-react
No API changes; tests cover the single and list hooks against a server (#4125).
@ahoo-wang/wow-generator
The open P2 items of the 9.2.0 review (#4109). Route ids are unchanged.
@ahoo-wang/wow-view-engine
- Datasets:
defineDataset,ViewEngine.register/unregister,DatasetResources,DatasetCatalogwithoverridesandwordings, and the view manager's 「措辞」 tab (#4159, #4160, #4163, #4206). - Analyses: running lines computed by Wow (D87, #4175), the previous period and the same period last year (D88, #4194), a metric card against last year (D90, #4202), the top N within each value of a dimension (D89, #4196), and dimensions over a record's own fields while elements are expanded (D92, #4217).
- Records and boards: the kanban (D83, #4113), stepping through records from the detail (#4152), 设为共享/设为个人 and 复制链接 (#4154), a board's filters in the address (#4157), 放进仪表盘 from the title bar (#4158),
inRowslayouts (#4131), saving or leaving a personal view with unsaved edits (#4139), ⌘S and 「/」 (#4146), and a yes-or-no field naming its two answers (#4171). memorySource(/testing) computes windows and root groups as Wow does.
@ahoo-wang/wow-view-store
WowDatasetWordings: a tenant's wording over a dataset, stored in the view store (#4205).
JVM (Maven)
- New modules:
wow-clickhouse(#4122, #4127);wow-dataset-registry-api,-domainand-starter(#4155, #4185); thewow-analytics-serverdistribution and image (#4182, #4185). - Dependencies: Ahoo platform BOMs 3.3.0 (#4143); CoSec 6.0.0 as
compileOnlyinwow-cosec(#4177). - Documentation: the documentation restructured by reader (#4104, #4111, #4114, #4115), the complete V8 to V9 migration path (#4117, #4118), the workbench user guide (#4130), the dataset and analytics guides (#4127, #4156, #4185), and the aggregation guide's windows and root groups (#4169, #4170, #4207).