From 693f255bd7aca502c1a43fe653942631cab1d99a Mon Sep 17 00:00:00 2001 From: Taewoon Kim Date: Mon, 23 Nov 2026 03:55:22 +0900 Subject: [PATCH 1/3] Column frames: the shared decoder reads rid, li8 and lf8 columns (refs #388, #315) A RID, a list, a map or a mixed column was one tagged JSON array of the column (the json kind), parsed per cell in Python. The decoder now also reads rid (bucket and position, two int64 per row) and li8 or lf8 (int32 offsets, a bitmap of null elements, one flat int64 or float64 array) and still reads json for those columns, so a frame of an older writer decodes as before. to_columns gives Python lists of exact int or float and, for a rid column, the wheel's own RID object (the native wheel builds its RID from the pair; the JVM bridge puts the engine's RID objects into a side array in row order, so the JVM wheel still hands out the engine's own RID). to_arrow gives a string column of #bucket:position for RIDs, as the column of RID objects degraded to before, and list or list over the frame's own offsets and flat array for the lists, with no per-element Python object. The head frame the native wheel writes in Python for the first reply is unchanged (json, the values themselves). tests/test_column_frames.py builds frames by hand (no database) and decodes them: rid, li8 and lf8 with nulls, empty lists, None inside, NaN, the infinities, -0.0 and integers beyond 2**53, against the JSON form of the same column, and a json frame of RIDs, lists and maps still reads. --- src/arcadedb/_columnar.py | 82 +++++++++++++++- src/arcadedb/_native/colframes.py | 17 +++- src/arcadedb/results.py | 13 ++- tests/test_column_frames.py | 152 ++++++++++++++++++++++++++++++ 4 files changed, 256 insertions(+), 8 deletions(-) diff --git a/src/arcadedb/_columnar.py b/src/arcadedb/_columnar.py index 63f5816f..ba00a7ec 100644 --- a/src/arcadedb/_columnar.py +++ b/src/arcadedb/_columnar.py @@ -5,8 +5,11 @@ vector, ``dim``), then for each column its null bitmap (bit i of byte i/8 set means row i is null) and its buffer. A column type is ``i8`` (int64), ``f8`` (float64), ``b1`` (one byte per bool), ``dt`` and ``dtu`` (int64 epoch milliseconds and microseconds), ``f4v`` and ``f8v`` (``dim`` floats per row), ``str`` (int32 offsets, count + 1 of them, then the UTF-8 bytes: Arrow's own string -layout), ``dec`` (a BigDecimal as text in the string layout) and ``json`` (a JSON array of the column, for values no fixed layout -carries: nested lists and maps, RIDs, a DATE next to datetimes, a mixed column). +layout), ``dec`` (a BigDecimal as text in the string layout), ``rid`` (two int64 per row: the bucket and the position of a record +link), ``li8`` and ``lf8`` (a list of int64 or of float64 per row: int32 offsets, count + 1 of them, a bitmap of the null elements, one +bit per element of the flat array, then the elements of every list one after the other) and ``json`` (a JSON array of the column, for +values no fixed layout carries: maps, nested lists, lists of anything else, embedded records, a DATE next to datetimes, a mixed +column). A writer that does not know ``rid``, ``li8`` and ``lf8`` writes ``json`` for those columns, and the decoder reads both. The interface and the format are shared, the plumbing is per wheel: what differs is how the bytes get here (JPype or ctypes) and the text of a ``json`` column (the JVM wheel's tagged JSON with a side array of Java objects, the native library's tagged JSON), so the @@ -66,6 +69,34 @@ def _decode_decimals(data, count: int, mask) -> list: ] +def rid_texts(pairs) -> list: + """The RID texts (``"#bucket:position"``) of the ``(count, 2)`` int64 array of a ``rid`` column.""" + return [f"#{b}:{p}" for b, p in pairs.tolist()] + + +def _decode_list_column(data, count: int, ctype: str): + """``(offsets, flat, null_elements)`` of a ``li8`` or ``lf8`` column buffer: int32 offsets (count + 1), the bitmap of the null + elements, then the flat int64 or float64 array of every list's elements. ``null_elements`` is a bool array (True = null) or None + when no element is null.""" + import numpy as np + + offs = np.frombuffer(data[: (count + 1) * 4], dtype=" Tuple[Dict[str, Any], int]: def decode_columns_frame( - buf, side, json_values: Callable, micros: bool = False + buf, side, json_values: Callable, micros: bool = False, rid_values: Callable = None ) -> Tuple[int, Dict[str, Any], Dict[str, Any]]: """``(count, parts, header)`` of one frame as ``to_columns`` columns: ``parts`` maps a column name to a numpy array (int64, float64, bool, datetime64) or a Python list (text, JSON-typed values, a bool column with nulls); a count of 0 has @@ -261,6 +292,10 @@ def decode_columns_frame( ``micros`` is the ``to_dataframe`` form: a naive datetime column is ``datetime64[us]`` (``dtu``), and a vector column is a list with one numpy array per cell and None for a null (a NaN row would read as a vector of NaN, not as a missing value). + + A ``rid`` column is a list of what ``rid_values(pairs, side, col)`` makes of the ``(count, 2)`` int64 array of its cells (the + wheel's own RID object; the null rows are set to None here), or of the RID texts without it. A ``li8`` or ``lf8`` column is a list + of Python lists (ints or floats, None for a null element), None for a null row. """ import numpy as np @@ -319,6 +354,27 @@ def decode_columns_frame( values = [ None if has_nulls and mask[i] else values[i] for i in range(count) ] + elif ctype == "rid": + pairs = np.frombuffer(data, dtype=" or list over the frame's own offsets and flat array, with a validity for null rows and elements + offs, flat, emask = _decode_list_column(data, count, ctype) + child = pa.array(flat, mask=emask) + validity = ( + None if not has_nulls else pa.py_buffer(np.invert(null_bits).tobytes()) + ) + arr = pa.ListArray.from_buffers( + pa.list_(child.type), + count, + [validity, pa.py_buffer(offs.tobytes())], + children=[child], + ) elif ctype == "json": values = json_values(data, side, count) try: diff --git a/src/arcadedb/_native/colframes.py b/src/arcadedb/_native/colframes.py index 31e47cc0..c1f55654 100644 --- a/src/arcadedb/_native/colframes.py +++ b/src/arcadedb/_native/colframes.py @@ -4,7 +4,8 @@ the shared decoder reads. The first reply of a query (up to ``_FIRST_BATCH`` rows) is JSON text that the row APIs read, and a columnar read finds those rows (and any the caller read by row) as dicts in the result's buffer. They cannot be read again from the cursor, so they are written here as one more frame, in the layout the library writes, by the rules the library's encoder follows, and read by the same -decoder: a column has one type however a result splits into the first reply and frames. The JSON reply names the properties that were +decoder: a column has one type however a result splits into the first reply and frames. A column of RIDs, or of lists of numbers, is a +``json`` column here, and a frame of the library may carry it as ``rid``, ``li8`` or ``lf8``: the decoder gives the same values for both forms. The JSON reply names the properties that were ``float[]`` or ``double[]`` (``fv`` and ``dv``): a list of numbers in a row cannot say that by itself, and a vector column is a column of declared arrays, not a column of lists that happen to fit float32. This frame goes away with the JSON reply. """ @@ -15,7 +16,7 @@ from decimal import Decimal from .. import _columnar -from .codec import loads_tagged +from .codec import RID, loads_tagged _EPOCH = datetime(1970, 1, 1) _MS = timedelta(milliseconds=1) @@ -29,6 +30,12 @@ def json_values(data, side, count): return loads_tagged(bytes(data).decode("utf-8"))[0] +def rid_objects(pairs, side, col): + """The RID objects of a ``rid`` column of a frame from the library: its bucket and position pairs, as the native build's ``RID`` of the text + the tagged JSON of a link value gives.""" + return [RID(text) for text in _columnar.rid_texts(pairs)] + + def _head_json_values(data, side, count): """The values of a ``json`` column of the head frame: the buffered values themselves, by the index the column carries.""" return side[int.from_bytes(bytes(data), "little")] @@ -182,7 +189,9 @@ def _head_frame(rows, columns, hints, micros): def decode_columns(raw, micros): - return _columnar.decode_columns_frame(memoryview(raw), (), json_values, micros) + return _columnar.decode_columns_frame( + memoryview(raw), (), json_values, micros, rid_objects + ) def decode_arrow(raw): @@ -196,7 +205,7 @@ def columns_result(head_rows, columns, micros, batches, hints): if head_rows: frame, side = _head_frame(head_rows, columns, hints, micros) count, parts, _ = _columnar.decode_columns_frame( - frame, side, _head_json_values, micros + frame, side, _head_json_values, micros, rid_objects ) names.extend(parts) parts_list.append((count, parts)) diff --git a/src/arcadedb/results.py b/src/arcadedb/results.py index d398511d..18614df0 100644 --- a/src/arcadedb/results.py +++ b/src/arcadedb/results.py @@ -22,6 +22,7 @@ frame_rows, merge_arrow, merge_columns, + rid_texts, ) from ._logging import get_logger from .callbacks import raise_pending_interrupt @@ -103,6 +104,16 @@ def hook(obj): return hook +def _typed_rid_values(pairs, side, col): + """The engine's RID objects of a ``rid`` column of a ColumnBatcher frame: the bridge puts them into the side array in row order from + the index ``col["side"]`` (an RID is a record link of a database, which a bucket and a position cannot be turned back into here). + """ + start = col.get("side") + if start is None: + return rid_texts(pairs) + return [convert_java_to_python(side[start + i]) for i in range(len(pairs))] + + def _typed_json_values(data, side, count): """The values of a ``json`` column of a ColumnBatcher frame: the tagged JSON (TypedRows) with its side array of Java objects.""" return json.loads(bytes(data), object_hook=_typed_hook(side)) @@ -894,7 +905,7 @@ def _read_columns_counted(self, batch_size, columns, micros): raise _read_error(exc) from exc buf = memoryview(bytes(java_batch[0])) count, parts, _ = decode_columns_frame( - buf, java_batch[1], _typed_json_values, micros + buf, java_batch[1], _typed_json_values, micros, _typed_rid_values ) if count == 0: self._finish() diff --git a/tests/test_column_frames.py b/tests/test_column_frames.py index c5a6d13d..469d889f 100644 --- a/tests/test_column_frames.py +++ b/tests/test_column_frames.py @@ -741,3 +741,155 @@ def test_null_vectors_in_every_columnar_api(temp_db): assert p["v"].to_list()[3] == [1.5, 1.0, 2.0] m = db.query("sql", sql).to_columns()["v"] assert m.shape == (700, 3) and np.isnan(m[nulls]).all() + + +# --- the rid, li8 and lf8 kinds (refs #388): hand-built frames, no database + + +def _rids(pairs): + return b"".join(struct.pack("<2q", b, p) for b, p in pairs) + + +def _lists(rows, ctype): + """The buffer of a ``li8`` or ``lf8`` column: int32 offsets (n + 1), the bitmap of null elements, the flat int64 or float64 array. + A ``None`` row is an empty list (its null bit is the frame's).""" + offsets, flat, null_elements = [0], [], [] + for row in rows: + for e in row or []: + null_elements.append(len(flat) if e is None else None) + ( + flat.append(0 if ctype == "li8" else math.nan) + if e is None + else flat.append(e) + ) + offsets.append(len(flat)) + bitmap = bytearray((len(flat) + 7) // 8) + for j in (j for j in null_elements if j is not None): + bitmap[j >> 3] |= 1 << (j & 7) + fmt = "q" if ctype == "li8" else "d" + return ( + struct.pack(f"<{len(offsets)}i", *offsets) + + bytes(bitmap) + + struct.pack(f"<{len(flat)}{fmt}", *flat) + ) + + +INT_LISTS = [[1, 2, 3], [], None, [4, None], [2**62, -(2**62), 2**53 + 1], [None]] +FLOAT_LISTS = [ + [0.5, math.nan], + [math.inf, -math.inf, -0.0], + [], + None, + [0.1, None], + [5e-324], +] + + +def _null_rows(rows): + return [i for i, row in enumerate(rows) if row is None] + + +def test_rid_column_is_the_text_of_each_link_in_columns_and_arrow_with_nulls(): + pairs = [(12, 0), (12, 345), (0, 0), (3, 2**40), (0, 7)] + frame = _frame(5, [("r", "rid", [2], _rids(pairs))]) + texts = ["#12:0", "#12:345", None, "#3:1099511627776", "#0:7"] + _, parts = _columns(frame) + assert parts["r"] == texts + _, chunks = _arrow(frame) + assert chunks["r"].type == pa.string() + assert chunks["r"].to_pylist() == texts + + +def test_rid_column_hands_the_pairs_to_the_wheels_hook_and_nulls_stay_none(): + seen = [] + + def hook(pairs, side, col): + seen.append((pairs.tolist(), side, col["side"])) + return [("rid", b, p) for b, p in pairs.tolist()] + + frame = _frame(3, [("r", "rid", [1], _rids([(1, 2), (0, 0), (5, 6)]))]) + header, _ = _columnar.read_header(frame) + header["cols"][0][ + "side" + ] = 9 # what the bridge writes: where its RID objects start in the side array + cols = json.dumps(header).encode("utf-8") + frame = memoryview( + struct.pack(" Date: Mon, 23 Nov 2026 03:55:32 +0900 Subject: [PATCH 2/3] JVM: ColumnBatcher writes rid, li8 and lf8 columns (refs #388, #315) The bridge jar wrote a column of record links and a column of lists as one tagged JSON array (json). It now writes rid for a column of valid RIDs (two int64 per row, and the engine's RID objects go into the side array in row order from the index the column header names as side) and li8 or lf8 for a column of lists of integers or of floats (int32 offsets, a bitmap of null elements, one flat int64 or float64 array). Maps, nested lists, lists of strings, booleans or RIDs, lists that mix ints and floats, a list of nothing but nulls, an invalid RID (negative bucket or position), a column that mixes kinds and a column with more than 2**27 list elements in one frame stay json. The decoder of the commit before reads both forms. The native library's writer is not part of this change. --- .../com/arcadedb/python/ColumnBatcher.java | 130 +++++++++++++++++- 1 file changed, 128 insertions(+), 2 deletions(-) diff --git a/src/java/com/arcadedb/python/ColumnBatcher.java b/src/java/com/arcadedb/python/ColumnBatcher.java index 168b2851..57368f27 100644 --- a/src/java/com/arcadedb/python/ColumnBatcher.java +++ b/src/java/com/arcadedb/python/ColumnBatcher.java @@ -6,7 +6,10 @@ * little-endian for numerics/bools/temporals (epoch millis), offset+UTF-8 * for strings, plus a null bitmap per column. A DECIMAL column ("dec" type) uses the string layout with each * BigDecimal written in full, so no digit is lost to a double. Columns whose values don't - * fit those encodings are serialized as one JSON array ("json" type). Python decodes with numpy.frombuffer + * fit those encodings are serialized as one JSON array ("json" type). A column of record links is "rid" (two int64 per row: + * bucket and position) and a column of lists of integers or of floats is "li8" or "lf8" (int32 offsets, a bitmap of the null + * elements, then one flat int64 or float64 array); maps, nested lists, lists of anything else and the rest stay "json". + * Python decodes with numpy.frombuffer * (ResultSet.to_columns / the fast to_dataframe path). Measured ~1.2x of * Java-native iteration on 100k-row scans (vs 3.4x for the JSON row path). * @@ -19,6 +22,7 @@ */ package com.arcadedb.python; +import com.arcadedb.database.RID; import com.arcadedb.query.sql.executor.Result; import com.arcadedb.query.sql.executor.ResultSet; import com.arcadedb.serializer.json.JSONArray; @@ -87,6 +91,55 @@ private static boolean yearFits(final LocalDateTime ldt) { return ldt.getYear() >= 1 && ldt.getYear() <= 9999; } + /** + * The column kind of one list: "li8" (every element a Long, Integer, Short or Byte, or null), "lf8" (every element a Double or Float, or + * null), "l0" (no element that is not null: it takes the kind of the other lists of the column) or "json" (a string, a boolean, a + * nested value, ints next to floats: what no fixed layout carries without changing a value). + */ + private static String listKind(final List list) { + String kind = "l0"; + for (final Object e : list) { + if (e == null) + continue; + final String k; + if (e instanceof Long || e instanceof Integer || e instanceof Short || e instanceof Byte) + k = "li8"; + else if (e instanceof Double || e instanceof Float) + k = "lf8"; + else + return "json"; + if (kind.equals("l0")) + kind = k; + else if (!kind.equals(k)) + return "json"; + } + return kind; + } + + private static boolean isListKind(final String kind) { + return kind.equals("li8") || kind.equals("lf8") || kind.equals("l0"); + } + + /** The kind of a column that holds lists of kind {@code a} and of kind {@code b}, or null when no list layout carries both. */ + private static String mergeListKinds(final String a, final String b) { + if (!isListKind(a) || !isListKind(b)) + return null; + if (a.equals(b) || b.equals("l0")) + return a; + if (a.equals("l0")) + return b; + return null; // ints next to floats: each element keeps its own type in a json column + } + + /** The elements of the lists of a column of list kind (the size of the flat buffer), or -1 when the buffer would not fit an int32 offset. */ + private static long listElements(final List rows, final int c, final int count) { + long total = 0; + for (int r = 0; r < count; r++) + if (rows.get(r)[c] instanceof List l) + total += l.size(); + return total <= (1 << 27) ? total : -1; + } + /** The columns of up to {@code max} rows, temporals in milliseconds: {@code {byte[] buffer, Object[] side}}. */ public static Object[] nextColumnBatch(final ResultSet rs, final int max, final String joinedColumns) { return nextColumnBatch(rs, max, joinedColumns, false); @@ -188,13 +241,21 @@ else if (v instanceof float[]) t = "f4v"; else if (v instanceof double[]) t = "f8v"; + else if (v instanceof RID rid) + // a record link: bucket and position, which write the text of the RID ("#b:p") for a valid RID + t = rid.getBucketId() >= 0 && rid.getPosition() >= 0 ? "rid" : "json"; + else if (v instanceof List list) + t = listKind(list); else t = "json"; if (type == null) type = t; else if (!type.equals(t)) { + final String merged = mergeListKinds(type, t); // numeric widening is fine; anything else degrades to json - if ((type.equals("i8") && t.equals("f8")) || (type.equals("f8") && t.equals("i8"))) + if (merged != null) + type = merged; + else if ((type.equals("i8") && t.equals("f8")) || (type.equals("f8") && t.equals("i8"))) type = "f8"; else { type = "json"; @@ -204,6 +265,8 @@ else if (!type.equals(t)) { } if (type == null) type = "str"; // all-null column + if (type.equals("l0")) + type = "json"; // lists with no element that is not null say nothing about the element type: Arrow types them list // an integer beyond 2**53 next to a floating value has no exact double: the values stay what they are, in a json column if (type.equals("f8") && sawInt && sawFloating && bigInt) type = "json"; @@ -225,6 +288,14 @@ else if (vdim != len) type = "json"; } + long listTotal = 0; + if (type.equals("li8") || type.equals("lf8")) { + listTotal = listElements(rows, c, count); + if (listTotal < 0) + type = "json"; + } + int ridSide = -1; + byte[] colBuf; if (type.equals("i8") || type.equals("dt") || type.equals("dtu")) { final ByteBuffer bb = ByteBuffer.allocate(count * 8).order(ByteOrder.LITTLE_ENDIAN); @@ -289,6 +360,59 @@ else if (type.equals("dtu")) bb.putDouble(x); } colBuf = bb.array(); + } else if (type.equals("rid")) { + // bucket and position as two int64 per row; a null row is 0, 0. The engine's RID objects go to the side array too, in row + // order from the index the header names ("side"): to_columns hands out the engine's own RID, which a numeric pair cannot be + // turned back into on this side of the bridge without the database; to_arrow reads the pairs and never touches the array + ridSide = side.size(); + final ByteBuffer bb = ByteBuffer.allocate(count * 16).order(ByteOrder.LITTLE_ENDIAN); + for (int r = 0; r < count; r++) { + final Object v = rows.get(r)[c]; + side.add(v); + if (v == null) { + nulls[r >> 3] |= (1 << (r & 7)); + bb.putLong(0); + bb.putLong(0); + } else { + bb.putLong(((RID) v).getBucketId()); + bb.putLong(((RID) v).getPosition()); + } + } + colBuf = bb.array(); + } else if (type.equals("li8") || type.equals("lf8")) { + // int32 offsets (count + 1), a bitmap of the null elements (bit j of byte j/8 set for a null element, one bit per element of + // the flat array), then the elements of every list one after the other, int64 or float64 LE. A null row is an empty list. + final boolean ints = type.equals("li8"); + final ByteBuffer offs = ByteBuffer.allocate((count + 1) * 4).order(ByteOrder.LITTLE_ENDIAN); + final ByteBuffer vals = ByteBuffer.allocate((int) listTotal * 8).order(ByteOrder.LITTLE_ENDIAN); + final byte[] elemNulls = new byte[(int) ((listTotal + 7) / 8)]; + int pos = 0; + offs.putInt(0); + for (int r = 0; r < count; r++) { + final Object v = rows.get(r)[c]; + if (v == null) + nulls[r >> 3] |= (1 << (r & 7)); + else + for (final Object e : (List) v) { + if (e == null) { + elemNulls[pos >> 3] |= (1 << (pos & 7)); + if (ints) + vals.putLong(0); + else + vals.putDouble(Double.NaN); + } else if (ints) + vals.putLong(((Number) e).longValue()); + else + vals.putDouble(((Number) e).doubleValue()); + pos++; + } + offs.putInt(pos); + } + final ByteBuffer bb = ByteBuffer.allocate(offs.capacity() + elemNulls.length + vals.capacity()); + bb.put(offs.array()); + bb.put(elemNulls); + bb.put(vals.array()); + colBuf = bb.array(); } else if (type.equals("json")) { // one JSON array for the whole column, in the tagged encoding of TypedRows: what the engine's JSON writer turns // into epoch milliseconds, a double or a text key (a date or Decimal in a list, an int map key) stays what the @@ -337,6 +461,8 @@ else if (type.equals("dtu")) columnHeader.put("bytes", colBuf.length); if (vdim > 0 && (type.equals("f4v") || type.equals("f8v"))) columnHeader.put("dim", vdim); + if (ridSide >= 0) + columnHeader.put("side", ridSide); headerColumns.put(columnHeader); body.write(nulls, 0, nulls.length); body.write(colBuf, 0, colBuf.length); From f1ec4a3c6c60ba24cb763465bba9e0e739d4f9b7 Mon Sep 17 00:00:00 2001 From: Taewoon Kim Date: Mon, 23 Nov 2026 03:55:32 +0900 Subject: [PATCH 3/3] Tests: the frame kinds of RID and number-list columns, and the stored output of the released wheels (refs #388, #315) tests/test_frame_rid_list_kinds.py reads the kind of each column from the frame headers (KINDS says per writer what it writes: the JVM bridge the new kinds, the native library json), compares the four columnar readers with the row route (to_list) cell by cell including the type and text of every RID, and with the stored output of the released wheels. A binary column has to show its kind in at least one frame and be json or that kind in all, because a read ends with an empty frame and the native wheel decodes its Python-written head frame (always json) after the library's frames. tests/fixtures/frame_kinds_post3.json is the output of the released 26.11.1.post3 wheels (JSON route, one entry per wheel) for the tables of the test, dumped before the change by a throwaway run on a branch cut from the tag and never generated from this code. It holds the type, the row count and the sha256 of the exact values per column: the first dump also had a 24-value sample per column, which a script deleted (a key removed, nothing recomputed), and the file is formatted with prettier as the pre-commit check of main requires. --- tests/fixtures/frame_kinds_post3.json | 1540 +++++++++++++++++++++++++ tests/test_frame_rid_list_kinds.py | 327 ++++++ 2 files changed, 1867 insertions(+) create mode 100644 tests/fixtures/frame_kinds_post3.json create mode 100644 tests/test_frame_rid_list_kinds.py diff --git a/tests/fixtures/frame_kinds_post3.json b/tests/fixtures/frame_kinds_post3.json new file mode 100644 index 00000000..c1f4c937 --- /dev/null +++ b/tests/fixtures/frame_kinds_post3.json @@ -0,0 +1,1540 @@ +{ + "jvm": { + "backend": "jvm", + "g1": { + "to_arrow:100": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "list" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "list" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "list" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "list" + }, + "lm": { + "n": 700, + "sha": "82b98b74049200ef9c6029e682ccf323bb48688d4d41dd91323c262570af508a", + "type": "list" + }, + "lmix": { + "n": 700, + "sha": "f142cb9a8291ce1b990869f05e5d1764dc1bf599d1f8c11e0f4f13529b5d8cd3", + "type": "list" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "list" + }, + "mixc": { + "n": 700, + "sha": "a55948f65aae73fdad0bd25c719d31ba725e7e2ca5303c2020bb9f1bf7f948cf", + "type": "string" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "struct" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "list>" + } + }, + "to_arrow:25000": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "list" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "list" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "list" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "list" + }, + "lm": { + "n": 700, + "sha": "82b98b74049200ef9c6029e682ccf323bb48688d4d41dd91323c262570af508a", + "type": "list" + }, + "lmix": { + "n": 700, + "sha": "f142cb9a8291ce1b990869f05e5d1764dc1bf599d1f8c11e0f4f13529b5d8cd3", + "type": "list" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "list" + }, + "mixc": { + "n": 700, + "sha": "a55948f65aae73fdad0bd25c719d31ba725e7e2ca5303c2020bb9f1bf7f948cf", + "type": "string" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "struct" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "list>" + } + }, + "to_columns:100": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "list" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "list" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "list" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "list" + }, + "lm": { + "n": 700, + "sha": "4b69ed220e03aa9ad65bc960c4117d9cd33e76fc3f1588fc103095311766ba55", + "type": "list" + }, + "lmix": { + "n": 700, + "sha": "cd2ba5b276017883d110a6a93007983c85a9ede20d432cc413e40e5a9f618249", + "type": "list" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "list" + }, + "mixc": { + "n": 700, + "sha": "67d56b52edd1a8aaa5d0e81a6959db3fdfab4f3c531056ffb9785dae54098359", + "type": "list" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "list" + } + }, + "to_columns:25000": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "list" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "list" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "list" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "list" + }, + "lm": { + "n": 700, + "sha": "4b69ed220e03aa9ad65bc960c4117d9cd33e76fc3f1588fc103095311766ba55", + "type": "list" + }, + "lmix": { + "n": 700, + "sha": "cd2ba5b276017883d110a6a93007983c85a9ede20d432cc413e40e5a9f618249", + "type": "list" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "list" + }, + "mixc": { + "n": 700, + "sha": "67d56b52edd1a8aaa5d0e81a6959db3fdfab4f3c531056ffb9785dae54098359", + "type": "list" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "list" + } + }, + "to_dataframe:25000": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "object" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "object" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "object" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "object" + }, + "lm": { + "n": 700, + "sha": "4b69ed220e03aa9ad65bc960c4117d9cd33e76fc3f1588fc103095311766ba55", + "type": "object" + }, + "lmix": { + "n": 700, + "sha": "cd2ba5b276017883d110a6a93007983c85a9ede20d432cc413e40e5a9f618249", + "type": "object" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "object" + }, + "mixc": { + "n": 700, + "sha": "67d56b52edd1a8aaa5d0e81a6959db3fdfab4f3c531056ffb9785dae54098359", + "type": "object" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "object" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "object" + } + }, + "to_polars:100": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "List(Boolean)" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "List(Null)" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "List(Float64)" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "List(Int64)" + }, + "lm": { + "n": 700, + "sha": "82b98b74049200ef9c6029e682ccf323bb48688d4d41dd91323c262570af508a", + "type": "List(Float64)" + }, + "lmix": { + "n": 700, + "sha": "f142cb9a8291ce1b990869f05e5d1764dc1bf599d1f8c11e0f4f13529b5d8cd3", + "type": "List(Float64)" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "List(String)" + }, + "mixc": { + "n": 700, + "sha": "a55948f65aae73fdad0bd25c719d31ba725e7e2ca5303c2020bb9f1bf7f948cf", + "type": "String" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "Struct({'a': Int64, 'b': String})" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "List(List(Int64))" + } + }, + "to_polars:25000": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "List(Boolean)" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "List(Null)" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "List(Float64)" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "List(Int64)" + }, + "lm": { + "n": 700, + "sha": "82b98b74049200ef9c6029e682ccf323bb48688d4d41dd91323c262570af508a", + "type": "List(Float64)" + }, + "lmix": { + "n": 700, + "sha": "f142cb9a8291ce1b990869f05e5d1764dc1bf599d1f8c11e0f4f13529b5d8cd3", + "type": "List(Float64)" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "List(String)" + }, + "mixc": { + "n": 700, + "sha": "a55948f65aae73fdad0bd25c719d31ba725e7e2ca5303c2020bb9f1bf7f948cf", + "type": "String" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "Struct({'a': Int64, 'b': String})" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "List(List(Int64))" + } + } + }, + "g2": { + "to_arrow:100": { + "lnk": { + "n": 700, + "sha": "08423a38c264dbd06aa40af9fe72fe8ce7d09819d19a0e1da82e9bd46fc6f4ea", + "type": "string" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "rid": { + "n": 700, + "sha": "73a8fd1aa66a4bb44be9f7dad7d376214ce7d8a005091bfa17eb3f99b2baf890", + "type": "string" + }, + "rls": { + "n": 700, + "sha": "03557dbb7c94f59adb60417f782105170ac3796ae24da32ed4c4bb4de1efdcaf", + "type": "string" + } + }, + "to_arrow:25000": { + "lnk": { + "n": 700, + "sha": "08423a38c264dbd06aa40af9fe72fe8ce7d09819d19a0e1da82e9bd46fc6f4ea", + "type": "string" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "rid": { + "n": 700, + "sha": "73a8fd1aa66a4bb44be9f7dad7d376214ce7d8a005091bfa17eb3f99b2baf890", + "type": "string" + }, + "rls": { + "n": 700, + "sha": "03557dbb7c94f59adb60417f782105170ac3796ae24da32ed4c4bb4de1efdcaf", + "type": "string" + } + }, + "to_columns:100": { + "lnk": { + "n": 700, + "sha": "1f8e38d20d1a9493da896e66199cee17d0b962282e326fdad8e95afef02c9e0e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + }, + "rid": { + "n": 700, + "sha": "652142dd88194f47762252e1a8a555ff506d51b38a7e6a03e6f9622bbc04564d", + "type": "list" + }, + "rls": { + "n": 700, + "sha": "7d4004a951d1f59a5ab5672dd642faff52f05f0fd122df78106c190cc01d1e2d", + "type": "list" + } + }, + "to_columns:25000": { + "lnk": { + "n": 700, + "sha": "1f8e38d20d1a9493da896e66199cee17d0b962282e326fdad8e95afef02c9e0e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + }, + "rid": { + "n": 700, + "sha": "652142dd88194f47762252e1a8a555ff506d51b38a7e6a03e6f9622bbc04564d", + "type": "list" + }, + "rls": { + "n": 700, + "sha": "7d4004a951d1f59a5ab5672dd642faff52f05f0fd122df78106c190cc01d1e2d", + "type": "list" + } + }, + "to_dataframe:25000": { + "lnk": { + "n": 700, + "sha": "1f8e38d20d1a9493da896e66199cee17d0b962282e326fdad8e95afef02c9e0e", + "type": "object" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "rid": { + "n": 700, + "sha": "652142dd88194f47762252e1a8a555ff506d51b38a7e6a03e6f9622bbc04564d", + "type": "object" + }, + "rls": { + "n": 700, + "sha": "7d4004a951d1f59a5ab5672dd642faff52f05f0fd122df78106c190cc01d1e2d", + "type": "object" + } + }, + "to_polars:100": { + "lnk": { + "n": 700, + "sha": "08423a38c264dbd06aa40af9fe72fe8ce7d09819d19a0e1da82e9bd46fc6f4ea", + "type": "String" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + }, + "rid": { + "n": 700, + "sha": "73a8fd1aa66a4bb44be9f7dad7d376214ce7d8a005091bfa17eb3f99b2baf890", + "type": "String" + }, + "rls": { + "n": 700, + "sha": "03557dbb7c94f59adb60417f782105170ac3796ae24da32ed4c4bb4de1efdcaf", + "type": "String" + } + }, + "to_polars:25000": { + "lnk": { + "n": 700, + "sha": "08423a38c264dbd06aa40af9fe72fe8ce7d09819d19a0e1da82e9bd46fc6f4ea", + "type": "String" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + }, + "rid": { + "n": 700, + "sha": "73a8fd1aa66a4bb44be9f7dad7d376214ce7d8a005091bfa17eb3f99b2baf890", + "type": "String" + }, + "rls": { + "n": 700, + "sha": "03557dbb7c94f59adb60417f782105170ac3796ae24da32ed4c4bb4de1efdcaf", + "type": "String" + } + } + }, + "g3": { + "to_arrow:100": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "list" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_arrow:25000": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "list" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_columns:100": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "list" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + } + }, + "to_columns:25000": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "list" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + } + }, + "to_dataframe:25000": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "object" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "object" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_polars:100": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "List(Float64)" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "List(Int64)" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + } + }, + "to_polars:25000": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "List(Float64)" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "List(Int64)" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + } + } + }, + "g4": { + "to_arrow:100": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_arrow:25000": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_columns:100": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + } + }, + "to_columns:25000": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + } + }, + "to_dataframe:25000": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "object" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_polars:100": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "List(Float64)" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + } + }, + "to_polars:25000": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "List(Float64)" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + } + } + }, + "rid_type": "com.arcadedb.database.com.arcadedb.database.DatabaseRID", + "version": "26.11.1.post3" + }, + "native": { + "backend": "native", + "g1": { + "to_arrow:100": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "list" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "list" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "list" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "list" + }, + "lm": { + "n": 700, + "sha": "82b98b74049200ef9c6029e682ccf323bb48688d4d41dd91323c262570af508a", + "type": "list" + }, + "lmix": { + "n": 700, + "sha": "f142cb9a8291ce1b990869f05e5d1764dc1bf599d1f8c11e0f4f13529b5d8cd3", + "type": "list" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "list" + }, + "mixc": { + "n": 700, + "sha": "a55948f65aae73fdad0bd25c719d31ba725e7e2ca5303c2020bb9f1bf7f948cf", + "type": "string" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "struct" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "list>" + } + }, + "to_arrow:25000": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "list" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "list" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "list" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "list" + }, + "lm": { + "n": 700, + "sha": "82b98b74049200ef9c6029e682ccf323bb48688d4d41dd91323c262570af508a", + "type": "list" + }, + "lmix": { + "n": 700, + "sha": "f142cb9a8291ce1b990869f05e5d1764dc1bf599d1f8c11e0f4f13529b5d8cd3", + "type": "list" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "list" + }, + "mixc": { + "n": 700, + "sha": "a55948f65aae73fdad0bd25c719d31ba725e7e2ca5303c2020bb9f1bf7f948cf", + "type": "string" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "struct" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "list>" + } + }, + "to_columns:100": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "list" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "list" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "list" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "list" + }, + "lm": { + "n": 700, + "sha": "4b69ed220e03aa9ad65bc960c4117d9cd33e76fc3f1588fc103095311766ba55", + "type": "list" + }, + "lmix": { + "n": 700, + "sha": "cd2ba5b276017883d110a6a93007983c85a9ede20d432cc413e40e5a9f618249", + "type": "list" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "list" + }, + "mixc": { + "n": 700, + "sha": "67d56b52edd1a8aaa5d0e81a6959db3fdfab4f3c531056ffb9785dae54098359", + "type": "list" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "list" + } + }, + "to_columns:25000": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "list" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "list" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "list" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "list" + }, + "lm": { + "n": 700, + "sha": "4b69ed220e03aa9ad65bc960c4117d9cd33e76fc3f1588fc103095311766ba55", + "type": "list" + }, + "lmix": { + "n": 700, + "sha": "cd2ba5b276017883d110a6a93007983c85a9ede20d432cc413e40e5a9f618249", + "type": "list" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "list" + }, + "mixc": { + "n": 700, + "sha": "67d56b52edd1a8aaa5d0e81a6959db3fdfab4f3c531056ffb9785dae54098359", + "type": "list" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "list" + } + }, + "to_dataframe:25000": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "object" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "object" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "object" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "object" + }, + "lm": { + "n": 700, + "sha": "4b69ed220e03aa9ad65bc960c4117d9cd33e76fc3f1588fc103095311766ba55", + "type": "object" + }, + "lmix": { + "n": 700, + "sha": "cd2ba5b276017883d110a6a93007983c85a9ede20d432cc413e40e5a9f618249", + "type": "object" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "object" + }, + "mixc": { + "n": 700, + "sha": "67d56b52edd1a8aaa5d0e81a6959db3fdfab4f3c531056ffb9785dae54098359", + "type": "object" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "object" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "object" + } + }, + "to_polars:100": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "List(Boolean)" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "List(Null)" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "List(Float64)" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "List(Int64)" + }, + "lm": { + "n": 700, + "sha": "82b98b74049200ef9c6029e682ccf323bb48688d4d41dd91323c262570af508a", + "type": "List(Float64)" + }, + "lmix": { + "n": 700, + "sha": "f142cb9a8291ce1b990869f05e5d1764dc1bf599d1f8c11e0f4f13529b5d8cd3", + "type": "List(Float64)" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "List(String)" + }, + "mixc": { + "n": 700, + "sha": "a55948f65aae73fdad0bd25c719d31ba725e7e2ca5303c2020bb9f1bf7f948cf", + "type": "String" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "Struct({'a': Int64, 'b': String})" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "List(List(Int64))" + } + }, + "to_polars:25000": { + "lb": { + "n": 700, + "sha": "c693f5d2610d716b2b56794832dc7f134d62e541400f7ed8a8b8fe4a67436a4e", + "type": "List(Boolean)" + }, + "le": { + "n": 700, + "sha": "fbae76ca22ed13531408879f6b50081e1c49f0669004c26850251133b7f382b4", + "type": "List(Null)" + }, + "lf": { + "n": 700, + "sha": "59bf4bbfda9304ea12c4564ddd04fc7d728295db0e3dd01ccbb7ae536e746c84", + "type": "List(Float64)" + }, + "li": { + "n": 700, + "sha": "91f316ebe5070c52ae3488a090a7f1affc3123df775d3b826e81e7ad6095697c", + "type": "List(Int64)" + }, + "lm": { + "n": 700, + "sha": "82b98b74049200ef9c6029e682ccf323bb48688d4d41dd91323c262570af508a", + "type": "List(Float64)" + }, + "lmix": { + "n": 700, + "sha": "f142cb9a8291ce1b990869f05e5d1764dc1bf599d1f8c11e0f4f13529b5d8cd3", + "type": "List(Float64)" + }, + "ls": { + "n": 700, + "sha": "a2693ca205ea2202723039fba87ad8eadf880351d933125ffcc4fb7b6d5585f2", + "type": "List(String)" + }, + "mixc": { + "n": 700, + "sha": "a55948f65aae73fdad0bd25c719d31ba725e7e2ca5303c2020bb9f1bf7f948cf", + "type": "String" + }, + "mp": { + "n": 700, + "sha": "444c3baf0091b11a442ebca86d122750059704363782d08406afb34d044b04d7", + "type": "Struct({'a': Int64, 'b': String})" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + }, + "nl": { + "n": 700, + "sha": "6bab46b549b85054c2187fed18a0e00c913b557ff648f670055558eed80e142b", + "type": "List(List(Int64))" + } + } + }, + "g2": { + "to_arrow:100": { + "lnk": { + "n": 700, + "sha": "08423a38c264dbd06aa40af9fe72fe8ce7d09819d19a0e1da82e9bd46fc6f4ea", + "type": "string" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "rid": { + "n": 700, + "sha": "73a8fd1aa66a4bb44be9f7dad7d376214ce7d8a005091bfa17eb3f99b2baf890", + "type": "string" + }, + "rls": { + "n": 700, + "sha": "f679ccfebbc736a35508ac4223934c516bd58e8b0352c3d753bdacede1a00243", + "type": "string" + } + }, + "to_arrow:25000": { + "lnk": { + "n": 700, + "sha": "08423a38c264dbd06aa40af9fe72fe8ce7d09819d19a0e1da82e9bd46fc6f4ea", + "type": "string" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "rid": { + "n": 700, + "sha": "73a8fd1aa66a4bb44be9f7dad7d376214ce7d8a005091bfa17eb3f99b2baf890", + "type": "string" + }, + "rls": { + "n": 700, + "sha": "f679ccfebbc736a35508ac4223934c516bd58e8b0352c3d753bdacede1a00243", + "type": "string" + } + }, + "to_columns:100": { + "lnk": { + "n": 700, + "sha": "1f8e38d20d1a9493da896e66199cee17d0b962282e326fdad8e95afef02c9e0e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + }, + "rid": { + "n": 700, + "sha": "652142dd88194f47762252e1a8a555ff506d51b38a7e6a03e6f9622bbc04564d", + "type": "list" + }, + "rls": { + "n": 700, + "sha": "7d4004a951d1f59a5ab5672dd642faff52f05f0fd122df78106c190cc01d1e2d", + "type": "list" + } + }, + "to_columns:25000": { + "lnk": { + "n": 700, + "sha": "1f8e38d20d1a9493da896e66199cee17d0b962282e326fdad8e95afef02c9e0e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + }, + "rid": { + "n": 700, + "sha": "652142dd88194f47762252e1a8a555ff506d51b38a7e6a03e6f9622bbc04564d", + "type": "list" + }, + "rls": { + "n": 700, + "sha": "7d4004a951d1f59a5ab5672dd642faff52f05f0fd122df78106c190cc01d1e2d", + "type": "list" + } + }, + "to_dataframe:25000": { + "lnk": { + "n": 700, + "sha": "1f8e38d20d1a9493da896e66199cee17d0b962282e326fdad8e95afef02c9e0e", + "type": "object" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + }, + "rid": { + "n": 700, + "sha": "652142dd88194f47762252e1a8a555ff506d51b38a7e6a03e6f9622bbc04564d", + "type": "object" + }, + "rls": { + "n": 700, + "sha": "7d4004a951d1f59a5ab5672dd642faff52f05f0fd122df78106c190cc01d1e2d", + "type": "object" + } + }, + "to_polars:100": { + "lnk": { + "n": 700, + "sha": "08423a38c264dbd06aa40af9fe72fe8ce7d09819d19a0e1da82e9bd46fc6f4ea", + "type": "String" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + }, + "rid": { + "n": 700, + "sha": "73a8fd1aa66a4bb44be9f7dad7d376214ce7d8a005091bfa17eb3f99b2baf890", + "type": "String" + }, + "rls": { + "n": 700, + "sha": "f679ccfebbc736a35508ac4223934c516bd58e8b0352c3d753bdacede1a00243", + "type": "String" + } + }, + "to_polars:25000": { + "lnk": { + "n": 700, + "sha": "08423a38c264dbd06aa40af9fe72fe8ce7d09819d19a0e1da82e9bd46fc6f4ea", + "type": "String" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + }, + "rid": { + "n": 700, + "sha": "73a8fd1aa66a4bb44be9f7dad7d376214ce7d8a005091bfa17eb3f99b2baf890", + "type": "String" + }, + "rls": { + "n": 700, + "sha": "f679ccfebbc736a35508ac4223934c516bd58e8b0352c3d753bdacede1a00243", + "type": "String" + } + } + }, + "g3": { + "to_arrow:100": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "list" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_arrow:25000": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "list" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_columns:100": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "list" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + } + }, + "to_columns:25000": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "list" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + } + }, + "to_dataframe:25000": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "object" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "object" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_polars:100": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "List(Float64)" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "List(Int64)" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + } + }, + "to_polars:25000": { + "lfn": { + "n": 700, + "sha": "c17034d7929a2bbd7f2fcb55e3a7fa6111b649045e2a24197826b0821cc88888", + "type": "List(Float64)" + }, + "lin": { + "n": 700, + "sha": "96ce261876395c521cdf92e61f6cf924c5405d05133c67ae67fa09d74a52f555", + "type": "List(Int64)" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + } + } + }, + "g4": { + "to_arrow:100": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_arrow:25000": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_columns:100": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + } + }, + "to_columns:25000": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "list" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "ndarray:int64:()" + } + }, + "to_dataframe:25000": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "object" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "int64" + } + }, + "to_polars:100": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "List(Float64)" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + } + }, + "to_polars:25000": { + "lfx": { + "n": 700, + "sha": "ff4803ce30b1ebd66982e8eb75a1f1d2b45b2e38fdeaecc12a534e4b75ab326e", + "type": "List(Float64)" + }, + "n": { + "n": 700, + "sha": "26ac5d80be9c2eae274b1bc3b422c3eedf1665fd2dd39e8a2d424b02d10d1f7d", + "type": "Int64" + } + } + }, + "rid_type": "arcadedb._native.codec.RID", + "version": "26.11.1.post3" + } +} diff --git a/tests/test_frame_rid_list_kinds.py b/tests/test_frame_rid_list_kinds.py new file mode 100644 index 00000000..a3733533 --- /dev/null +++ b/tests/test_frame_rid_list_kinds.py @@ -0,0 +1,327 @@ +"""RID and list columns travel as binary column kinds, and read back as the JSON form gave them (refs #388, #315). + +A column frame has carried a RID, a list or a map as one JSON array of the column (the ``json`` kind), parsed per cell in Python. A +writer that knows the new kinds writes ``rid`` (bucket and position, two int64 per row) and ``li8`` / ``lf8`` (a list of int64 or of +float64 per row: offsets, a bitmap of null elements, one flat array) for those columns, and keeps ``json`` for every other shape: maps, +nested lists, lists of strings, of booleans or of RIDs, lists that mix ints and floats, a list of nothing but nulls. The JVM bridge +(``ColumnBatcher``) writes them in this change; the writer of the native library (``ColumnFrames``) is a separate change stacked on this +one and still writes ``json`` here. ``KINDS`` below says what each writer writes, so the tests of each change pass alone; the decoder +reads both forms, and every other test here holds for either. + +Three kinds of check, all on the wheel that runs the tests (no branch on ``arcadedb.__backend__`` except ``KINDS`` and the stored output, +and where a wheel's frames differ in how they start, noted below): + +* ``test_the_frames_*``: which kind each shape gets, read from the frame headers the readers decode (a frame header is what the Java + writer produced: this fails on a wheel whose writer writes another kind than ``KINDS`` says). +* ``test_readers_agree_with_the_json_route``: ``to_columns``, ``to_arrow``, ``to_dataframe`` and ``to_polars`` against the row route + (``to_list``: the tagged JSON of the rows, which this change does not touch) cell by cell, and the Arrow type the JSON form would have + had. +* ``test_readers_match_the_tag_fixture``: the same four readers against ``fixtures/frame_kinds_post3.json``, the output of the released + 26.11.1.post3 wheels (JSON route, one entry per wheel) for the same table. RID values compare by shape (``#N:N``): the bucket numbers of + a type depend on the machine, and each RID is checked against the row route instead. + +The fixture was dumped once, by a throwaway run of the released 26.11.1.post3 wheels on a branch cut from the tag, before any of this code +existed. It is never regenerated: a change that moves a value is a change of behaviour that this test is there to show. It holds per column +only the type, the row count (``n``) and the sha256 of the exact values; the first dump also had a 24-value ``sample`` per column (for +reading a failure), and that key was deleted from the file by a script that removed the key and recomputed nothing (the other keys and +values are those of the dump, written sorted and two-space indented). The jvm and native entries are equal in 24 of 28 (group, reader) +entries and differ only in the ``rls`` column of ``g2`` for ``to_arrow`` and ``to_polars``; they stay two entries, one per wheel. + +On the native wheel the first 256 rows of a result are read as JSON text and written as a frame in Python (``json`` kind: the values +themselves), the rows after them come from the library's frames, so every table here has more than 256 rows. +""" + +import hashlib +import json +import math +import re +from pathlib import Path + +import numpy as np +import pyarrow as pa +import pytest + +import arcadedb +from arcadedb import _columnar + +ROWS = 700 +FIXTURE = Path(__file__).parent / "fixtures" / "frame_kinds_post3.json" +INF = float("inf") + + +def _g1(i): + k = i % 5 + return { + "n": i, + "li": [[i, i + 1, i + 2], [], None, [-(2**62), 2**53 + 1, 0], [7]][k], + "lf": [[0.5, 1.5], [], None, [-0.0, 1e300, 5e-324], [i / 7]][k], + "le": [], + "lm": [[1, 2], [1.5]][i % 2], + "lmix": [1, 2.5], + "ls": ["a", "b"], + "lb": [True, False], + "mp": {"a": i, "b": "x"}, + "nl": [[1, 2], [3]], + "mixc": 5 if i % 2 else "x", + } + + +def _g3(i): + k = i % 5 + return { + "n": i, + "lin": [[4, None], [None], [1, 2], [], None][k], + "lfn": [[0.1, None], [1.5], [None, 2.5], [], None][k], + } + + +def _g4(i): + k = i % 5 + return {"n": i, "lfx": [[math.nan, INF, -INF, 0.1], [1.5], [-INF], [], None][k]} + + +GROUPS = { + "g1": ("SELECT n, li, lf, le, lm, lmix, ls, lb, mp, nl, mixc FROM g1 ORDER BY n"), + "g2": "SELECT n, lnk, rls, @rid AS rid FROM g2 ORDER BY n", + "g3": "SELECT n, lin, lfn FROM g3 ORDER BY n", + "g4": "SELECT n, lfx FROM g4 ORDER BY n", +} +# The kind of each column in the frames of a read (the shapes in the table above). ``_BINARY`` is what a writer that knows the new kinds +# writes, ``_JSON`` what a writer that does not know them writes. The JVM bridge writes the new kinds in this change; the native library +# writes ``json`` here, and the change that teaches its writer the new kinds sets the ``native`` entry of ``KINDS`` to ``_BINARY``. +_BINARY = { + "g1": { + "li": "li8", + "lf": "lf8", + "le": "json", + "lm": "json", + "lmix": "json", + "ls": "json", + "lb": "json", + "mp": "json", + "nl": "json", + "mixc": "json", + }, + "g2": {"lnk": "rid", "rls": "json", "rid": "rid"}, + "g3": {"lin": "li8", "lfn": "lf8"}, + "g4": {"lfx": "lf8"}, +} +_JSON = {g: {c: "json" for c in cols} for g, cols in _BINARY.items()} +KINDS = {"jvm": _BINARY, "native": _JSON} + + +def build(db, group): + """Create and fill the table ``group`` (several hundred rows: see the module docstring).""" + if group == "g2": + db.command("sql", "CREATE DOCUMENT TYPE t") + db.insert_many("t", [{"k": k} for k in range(5)]) + rids = [ + str(r["rid"]) + for r in db.query("sql", "SELECT @rid AS rid FROM t ORDER BY k").to_list() + ] + db.command("sql", "CREATE DOCUMENT TYPE g2") + db.command("sql", "CREATE PROPERTY g2.lnk LINK") + with db.transaction(): + for i in range(ROWS): + link = "null" if i % 9 == 0 else rids[i % 5] + db.command( + "sql", + f"INSERT INTO g2 SET n = {i}, lnk = {link}, rls = [{rids[i % 5]}, {rids[(i + 1) % 5]}]", + ) + return + db.command("sql", f"CREATE DOCUMENT TYPE {group}") + make = {"g1": _g1, "g3": _g3, "g4": _g4}[group] + db.insert_many(group, [make(i) for i in range(ROWS)]) + + +# ---------------------------------------------------------------- normal form of a value, for comparing and for the stored fixture +_RID_TEXT = re.compile(r"^#-?\d+:-?\d+$") + + +def norm(v): + """A JSON-able, exact form of a value: type tags, ``repr`` of floats (NaN, -0.0), RIDs by their shape.""" + if v is None: + return None + if isinstance(v, (bool, np.bool_)): + return ["b", bool(v)] + if isinstance(v, (int, np.integer)): + return ["i", str(int(v))] + if isinstance(v, (float, np.floating)): + return ["f", repr(float(v))] + if isinstance(v, str): + return ["s", "#N:N" if _RID_TEXT.match(v) else v] + if hasattr(v, "getBucketId") or type(v).__name__ == "RID": + return ["rid", "#N:N"] + if isinstance(v, np.ndarray): + return ["nd", str(v.dtype), list(v.shape), [norm(x) for x in v.tolist()]] + if isinstance(v, (list, tuple)): + return ["l", [norm(x) for x in v]] + if isinstance(v, dict): + return ["d", [[str(k), norm(x)] for k, x in v.items()]] + return ["?", type(v).__name__, str(v)] + + +def _column(kind, values): + flat = [norm(v) for v in values] + digest = hashlib.sha256(json.dumps(flat, sort_keys=True).encode()).hexdigest() + return {"type": kind, "n": len(flat), "sha": digest} + + +def _read_columns(rs, bs): + return { + k: ( + type(v).__name__ + + (f":{v.dtype}:{v.shape[1:]}" if isinstance(v, np.ndarray) else ""), + list(v), + ) + for k, v in rs.to_columns(batch_size=bs).items() + } + + +def _read_arrow(rs, bs): + table = rs.to_arrow(batch_size=bs) + return { + name: (str(table.column(name).type), table.column(name).to_pylist()) + for name in table.column_names + } + + +def _read_dataframe(rs, bs): + df = rs.to_dataframe() + return {name: (str(df[name].dtype), df[name].tolist()) for name in df.columns} + + +def _read_polars(rs, bs): + df = rs.to_polars(batch_size=bs) + return {name: (str(df[name].dtype), df[name].to_list()) for name in df.columns} + + +READERS = { + "to_columns": _read_columns, + "to_arrow": _read_arrow, + "to_dataframe": _read_dataframe, + "to_polars": _read_polars, +} + + +def snapshot(db, group): + """``{reader: {column: type, size, digest of the exact values}}`` of every reader on ``group`` (an error is its class name).""" + out = {} + for name, read in READERS.items(): + for bs in (25_000, 100) if name != "to_dataframe" else (25_000,): + key = f"{name}:{bs}" + try: + cols = read(db.query("sql", GROUPS[group]), bs) + out[key] = { + c: _column(kind, values) for c, (kind, values) in cols.items() + } + except ( + Exception + ) as exc: # noqa: BLE001 - the stored form of a failure is its class + out[key] = {"error": type(exc).__name__} + return out + + +@pytest.fixture(scope="module") +def tables(tmp_path_factory): + db = arcadedb.create_database(str(tmp_path_factory.mktemp("frame_kinds") / "db")) + for group in GROUPS: + build(db, group) + yield db + db.close() + + +# ---------------------------------------------------------------------------------------------------- which kind each shape gets +@pytest.fixture +def recorded_kinds(monkeypatch): + seen = [] + real = _columnar.read_header + + def read_header(buf): + header, pos = real(buf) + seen.append({c["name"]: c["type"] for c in header["cols"]}) + return header, pos + + monkeypatch.setattr(_columnar, "read_header", read_header) + return seen + + +@pytest.mark.parametrize("group", list(GROUPS)) +@pytest.mark.parametrize("reader", ["to_columns", "to_arrow", "to_dataframe"]) +def test_the_frames_carry_rid_and_number_lists_in_binary_kinds( + tables, recorded_kinds, group, reader +): + getattr(tables.query("sql", GROUPS[group]), reader)() + assert recorded_kinds, "no frame was decoded" + for name, expected in KINDS[arcadedb.__backend__][group].items(): + # every frame that has the column: the read ends with an empty frame (no columns), and on the native wheel the first 256 rows + # are a Python-written frame (always json) that is decoded after the library's frames, so neither is "the last frame" + kinds = [frame[name] for frame in recorded_kinds if name in frame] + assert kinds, name + if expected == "json": + assert set(kinds) == {"json"}, (name, kinds) + else: + assert expected in kinds and set(kinds) <= {expected, "json"}, (name, kinds) + + +# ------------------------------------------------------------------------------------------------ the values the JSON route gave +def _json_form_arrow(values): + """The Arrow array the ``json`` kind made of a column of Python values.""" + try: + return pa.array(values) + except pa.ArrowException: + return pa.array( + [None if v is None else str(v) for v in values], type=pa.string() + ) + + +def _same(have, want): + return norm(list(have) if not isinstance(have, list) else have) == norm( + list(want) if not isinstance(want, list) else want + ) + + +@pytest.mark.parametrize("group", list(GROUPS)) +def test_readers_agree_with_the_json_route(tables, group): + sql = GROUPS[group] + rows = tables.query("sql", sql).to_list() + names = list(rows[0]) + want = {name: [row.get(name) for row in rows] for name in names} + + columns = tables.query("sql", sql).to_columns(batch_size=100) + table = tables.query("sql", sql).to_arrow(batch_size=100) + frame = tables.query("sql", sql).to_dataframe() + for name in names: + # values: a RID is the wheel's own RID object, equal to the row route's, cell by cell + assert _same(columns[name], want[name]), name + if name not in ("n", "mixc"): + expected = _json_form_arrow(want[name]) + assert table.column(name).type == expected.type, ( + name, + table.column(name).type, + expected.type, + ) + assert norm(table.column(name).to_pylist()) == norm( + expected.to_pylist() + ), name + assert _same(frame[name].tolist(), want[name]), name + for name in _BINARY[group]: + if _BINARY[group][name] == "rid": + # the text of every RID, and its type, are the row route's + for have, w in zip(columns[name], want[name]): + assert (have is None) == (w is None), name + assert have is None or ( + str(have) == str(w) and type(have) is type(w) + ), name + + +@pytest.mark.parametrize("group", list(GROUPS)) +def test_readers_match_the_tag_fixture(tables, group): + stored = json.loads(FIXTURE.read_text())[arcadedb.__backend__] + assert ( + group in stored and "build_error" not in stored[group] + ), f"no stored output for {group}: {stored.get(group)}" + now = snapshot(tables, group) + assert now.keys() == stored[group].keys() + for key in now: + assert now[key] == stored[group][key], (group, key)