Commit Graph
12567 Commits
Author SHA1 Message Date
Effect Bot eddf419102 Say that isIn candidates of the value's kind follow each engine's comparison rules 2026-11-16 14:10:12 +00:00
Effect Bot 1dcc764db1 Join typed isIn candidates in halves, keep fractional candidates in a list of their own on SQL and compare UInt64 candidates unsigned 2026-11-16 13:56:57 +00:00
Effect Bot 643c22ba2c Compare isIn candidates with decimal values instead of their unscaled units and compare typed candidates with eq 2026-11-16 13:35:05 +00:00
Effect Bot 7dde5f32a3 Keep integers exact next to negative-scale decimals, give decimal literals a valid checked type and convert floats at scales past 308 2026-11-16 13:25:22 +00:00
Effect Bot dbf60e63c0 Decide decimal scales far apart from the 64-bit storage range and reject decimal widths, cast targets and SQL scales that can't be held 2026-11-16 13:02:05 +00:00
Effect Bot ced3afd8d6 Reject a declared decimal precision or scale that a 128-bit decimal can't have before values are converted 2026-11-16 12:33:51 +00:00
Effect Bot 9509abd955 Merge feat/arrow-support into feat/dataframe-support 2026-11-16 12:07:12 +00:00
Effect Bot 283ec06fc5 Shorten and clarify data frame comments, docs and the changeset 2026-11-16 12:00:36 +00:00
Effect Bot 6524aa2f40 Simplify the table checks, the Table decoder and two unit lookups in the data frame internals 2026-11-16 11:56:23 +00:00
Effect Bot 468005af8e Tighten the Arrow decimal comments, an inventory row and the changeset 2026-11-16 11:55:37 +00:00
Effect Bot 13730c7c89 Merge feat/arrow-support into feat/dataframe-support 2026-11-16 11:23:21 +00:00
Effect Bot ab350ad291 Keep __proto__ an own property of the rows that checks see
A row is rebuilt for a check when a field is optional, and assigning
__proto__ set the prototype instead of the field, so the check saw an
object without it.
2026-11-16 11:23:15 +00:00
Effect Bot 48a1eec4d8 Say that IPC decoding validates structure, not stored values 2026-11-16 11:12:18 +00:00
Effect Bot 07a5358e28 Decode a message's metadata once while its body arrives in chunks 2026-11-16 10:30:45 +00:00
Effect Bot 8968ad5116 Align the DataFrame decimal control and Query.table docs with the stricter builders and checks 2026-11-16 09:21:41 +00:00
Effect Bot 88544471e3 Use the shared temporal check for the columns a mean rejects 2026-11-16 09:18:57 +00:00
Effect Bot 035eb7bcff Type duration sums as durations and reject the means and sums the engines disagree on 2026-11-16 09:18:57 +00:00
Effect Bot 9c238dfeee Refuse to encode a plan whose tables carry checks instead of dropping them 2026-11-16 09:18:31 +00:00
Effect Bot e1559942d6 Test a checked field with the schema's own guard, so null and oneOf unions are checked as Schema.is checks them 2026-11-16 09:18:16 +00:00
Effect Bot ac3ae09099 Hand checks the stored values as the schema writes them, and reject schemas a frame can't do that for 2026-11-16 09:18:16 +00:00
Effect Bot 0ad0fb972d Keep the checks of a union's members when its null member is suspended 2026-11-16 09:18:16 +00:00
Effect Bot 86e0fef050 Check the frame fromRows built, and reject temporal and decimal values its columns can't hold exactly 2026-11-16 09:18:16 +00:00
Effect Bot b8d296127e Run a table declared by an Arrow schema on PostgreSQL 2026-11-16 09:18:16 +00:00
Effect Bot eb6629905b Add DataFrame.column to read a column's buffers without building rows 2026-11-16 09:18:16 +00:00
Effect Bot 72e4937503 Add a benchmark of columnar work against row output 2026-11-16 09:18:16 +00:00
Effect Bot 194d0fe30f Cover the columnar path of temporal and decimal columns 2026-11-16 09:18:16 +00:00
Effect Bot f93416451c Read decimal SQL results into columns without a BigDecimal per value 2026-11-16 09:18:16 +00:00
Effect Bot 0e15174824 Round decimals half to even with integer arithmetic 2026-11-16 09:18:16 +00:00
Effect Bot 29e15e49e1 List the schema check and Arrow declaration tests in the dataframe inventory 2026-11-16 09:18:16 +00:00
Effect Bot 8bed2f0c30 Keep Effect Schema out of table execution and declare tables by Arrow schemas 2026-11-16 09:18:16 +00:00
Effect Bot 23727596c2 Cover DataFrame cooperative interruption and buffer reuse contracts 2026-11-16 09:18:15 +00:00
Effect Bot a415abf891 Map DataFrame API contracts to runtime and type coverage 2026-11-16 09:18:15 +00:00
Effect Bot e3474e992a Clarify the comment on fitting integer literals to their operand 2026-11-16 09:18:15 +00:00
Effect Bot ace6f35cc4 Simplify the dataframe tests, oracle, gold generator and benchmark 2026-11-16 09:18:15 +00:00
Effect Bot 88fa4baa51 Trim setup and share error helpers in the PGlite DataFrame tests 2026-11-16 09:18:15 +00:00
Effect Bot fff9a121cb Simplify the SQL compiler and shorten its comments 2026-11-16 09:18:15 +00:00
Effect Bot 6d17c56485 Simplify dataframe plan rewriting, expression evaluation and schema declarations 2026-11-16 09:18:15 +00:00
Effect Bot 91e37a0dee Share row grouping, ordering and key helpers across the dataframe kernels 2026-11-16 09:18:15 +00:00
Effect Bot 260c88a4c6 Simplify dataframe value kernels, vectors and type helpers 2026-11-16 09:18:15 +00:00
Effect Bot 71c00539a1 Shorten the dataframe changeset 2026-11-16 09:18:15 +00:00
Effect Bot e2db400695 Simplify the dataframe public modules 2026-11-16 09:18:15 +00:00
Effect Bot 158f530359 Share one SQL source among names PostgreSQL keeps as one
Declarations of one table whose column names differ only past their
first 63 bytes put that one column twice in the table's MATERIALIZED
source, so PostgreSQL rejected the query as ambiguous although each
declaration ran alone. The source now names its columns, and is keyed
by its table's name, as PostgreSQL keeps them: every such declaration
reads the one column or relation, once, each with its own checks.
2026-11-16 09:18:15 +00:00
Effect Bot 059c5655af Read a table named more than once only when a run needs its batches
Streamed runs collected every repeated table while preparing, before a zero-row slice or top-k could skip it, so head(concat([t, t]), 0) pulled, died on or hung over its source. Each repeated table is now an Effect.cached collection that starts on first demand and is shared by every use in the run. The error for unknown columns names each undeclared table once.
2026-11-16 09:18:15 +00:00
Effect Bot c43ddd8c06 Reject columns PostgreSQL can't tell apart in SQL plans
PostgreSQL keeps the whole characters within a name's first 63 bytes, so
two columns of one relation that share them are one column to it, and the
query failed with an ambiguous reference. Fail at compile time instead,
naming both columns.
2026-11-16 09:18:15 +00:00
Effect Bot 5d3535ea74 Keep the names the SQL compiler invents distinct after truncation
The prefix of invented names grew with the plan's names, so a 63-byte
table name made every helper name truncate to one identifier, and a
57-byte one dropped the suffixes of the tables' sources. Number the
prefix instead: __, then __1_, __2_, ... A name starts with at most one
of those, so invented names stay short and PostgreSQL keeps them whole.
2026-11-16 09:18:15 +00:00
Effect Bot 0da84fd5c4 Read no batch for a top-k selection without rows
A head without rows of a sort is optimised into a top-k of no rows, which collected its input; it now reads nothing, as a slice without rows does.
2026-11-16 09:18:15 +00:00
Effect Bot 766686fb46 Keep the columns of streamed results without rows, or fail where they are unknown
Every streamed node now has at least one batch unless its columns are unknown: a declared table without batches, and a slice without rows (which reads nothing), give their result from the declared columns. A node without batches depends on an undeclared table of which no batch was read; collecting, concatenating, joining or aggregating it fails asking for the columns to be declared, instead of inventing a result without columns. Tables named more than once are read into memory as batches of the same table, so they follow the same rule.
2026-11-16 09:18:15 +00:00
Effect Bot 2a10bd3cfa Import Arrow tables without batches with the nullability of their fields
A frame without rows is now built in one place (F.empty), with the declared nullability and no validity bitmap, which made non-nullable fields nullable.
2026-11-16 09:18:15 +00:00
Effect Bot 28fa44562d Fix the type of an integer literal cast to its own type
A cast to Int32 kept an integer literal flexible, so it still adopted
the type of the column it met (Int8 + cast(5, Int32) was Int8).
2026-11-16 09:18:15 +00:00
Effect Bot f79b5821db Fit integer literals of when and coalesce by their plan-time range
The type of an operand built from integer literals was chosen from the
values of the current batch, so results depended on batch boundaries
and slice pushdown. A when or coalesce of literals now carries the
range of its literals; a scalar fits by its value; other operands
computed from literals count as Int32.
2026-11-16 09:18:15 +00:00