You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c62240a
Browse filesBrowse the repository at this point in the historyBrowse files
Docs: the facets user guide, its page test and example 30 (closes#293) (#303)
The guide walks one small data set through every facet kind (TERMS, RANGES,
HISTOGRAM, FILTER, HIERARCHY, DISTINCT, STATS, AFTER paging, facet.searchValues),
the result_set.facets dict shape, unavailable facets, the rows-first rule, the
parameters and the older-engine refusal. Every SQL text and output is taken from
what tests/test_result_set_facets*.py and tests/test_columnar_index.py already
prove on both packages; no speed claim and no release claim beyond engine 26.12.1.
Engine gating without skips: a block that needs 26.12.1 carries role=needs-engine
and a visible title. tests/test_docs_facets_page.py runs every block in order on
both packages; on an older engine it asserts the documented refusal ("SQL syntax
error" or the COLUMNAR index type refusal) for those blocks instead of their
output, so the native PR gate (engine 26.11.1) and the JVM lane (26.12.1-SNAPSHOT)
both run the same file.
examples/30_columnar_facets.py checks every facet count against the same count
made in Python, and prints one line and exits 0 on an older engine. The examples
globs of test-python-examples.yml and test-native.yml stopped at 2[0-9], so a
30th example would never have run: they now include 3[0-9].
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ This prints `Name: Alice` (the engine also logs to standard error). `create_data
74
74
- Graph, document, key/value, vector (JVector HNSW) and time series models; ACID transactions.
75
75
- Import from CSV, XML and ArcadeDB JSONL; export to JSONL.
76
76
- Columnar results with `to_columns()`, `to_arrow()` and `to_dataframe()`.
77
+
- Faceted queries: the `FACETS` clause of a `SELECT` with a `COLUMNAR` index, and the counts as a dict in `ResultSet.facets` (needs engine 26.12.1 or later).
77
78
- An optional in-process HTTP server (`create_server()`), off until you call it, for other processes that need the same data.
78
79
79
80
<!-- REMOVE WHEN: the old arcadedb-embedded* shims are retired and two releases have shipped with the two-package layout allow-old-name -->
@@ -93,13 +94,13 @@ Releases from this repository start with 26.11.1. The 26.10.x wheels were built
93
94
94
95
## Documentation
95
96
96
-
- Here: [`docs/`](https://github.com/ArcadeData/arcadedb-python/tree/main/docs/modules/ROOT/pages) is an Antora component (AsciiDoc) with Installation, [Which package?](https://github.com/ArcadeData/arcadedb-python/blob/main/docs/modules/ROOT/pages/which-package.adoc), Quickstart, Databases and queries, Vectors, and Concurrency, processes and crashes. It covers only what is specific to the Python bindings.
97
+
- Here: [`docs/`](https://github.com/ArcadeData/arcadedb-python/tree/main/docs/modules/ROOT/pages) is an Antora component (AsciiDoc) with Installation, [Which package?](https://github.com/ArcadeData/arcadedb-python/blob/main/docs/modules/ROOT/pages/which-package.adoc), Quickstart, Databases and queries, Vectors, Faceted queries, and Concurrency, processes and crashes. It covers only what is specific to the Python bindings.
97
98
- Published at [docs.arcadedb.com/arcadedb-python](https://docs.arcadedb.com/arcadedb-python/), the same site as the main ArcadeDB manual, rebuilt daily from `main` (ArcadeData/arcadedb-docs#505). The `Docs` workflow builds it as a site of its own on every change under `docs/` and attaches it as the `docs-site` artifact. To build it locally, run `npx -p @antora/cli@3.2.1 -p @antora/site-generator@3.2.1 antora docs/antora-playbook.yml` and open `docs/build/site/index.html`.
98
99
- ArcadeDB itself (SQL, openCypher, schema, server): [docs.arcadedb.com](https://docs.arcadedb.com). It is not repeated here.
99
100
100
101
## Examples
101
102
102
-
[`examples/`](https://github.com/ArcadeData/arcadedb-python/tree/main/examples) holds 29 runnable scripts, from a first document store to vector search, time series, graph algorithms and server mode. CI runs them ([`test-python-examples.yml`](https://github.com/ArcadeData/arcadedb-python/blob/main/.github/workflows/test-python-examples.yml)).
103
+
[`examples/`](https://github.com/ArcadeData/arcadedb-python/tree/main/examples) holds 30 runnable scripts, from a first document store to vector search, time series, graph algorithms and server mode. CI runs them ([`test-python-examples.yml`](https://github.com/ArcadeData/arcadedb-python/blob/main/.github/workflows/test-python-examples.yml)).
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/how-to/columnar-index.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
// Sources: ArcadeDB 26.12.1: GlobalConfiguration.java (COLUMNAR_*), AlterDatabaseStatement.java, ColumnarGroupByStep.java, ColumnarCrashRecoveryTest.java. The statements about Python are pinned by tests/test_columnar_index.py, which runs on arcadedb-jvm and on the native arcadedb.
5
5
6
-
A `COLUMNAR` index keeps a column projection of a type next to its records. The engine applies, flushes and merges it in threads of its own, and the `FACETS` clause and `GROUP BY` read it. It needs engine 26.12.1 or later: an older engine refuses `CREATE INDEX ... COLUMNAR` with `Index type 'COLUMNAR' is not supported`. The facets themselves are read with `ResultSet.facets`.
6
+
A `COLUMNAR` index keeps a column projection of a type next to its records. The engine applies, flushes and merges it in threads of its own, and the `FACETS` clause and `GROUP BY` read it. It needs engine 26.12.1 or later: an older engine refuses `CREATE INDEX ... COLUMNAR` with `Index type 'COLUMNAR' is not supported`. The facets themselves are read with `ResultSet.facets`, which xref:how-to/facets.adoc[Faceted queries] shows kind by kind.
7
7
8
8
The index is a statement, so it is the same on both builds:
0 commit comments