-
### User Story
As a developer of ReportStream,
I want to ensure all DB queries are independent of the receive step,
so that the pipeline steps can be more flexible and support greater use cases.
…
-
### What happened?
for BigQuery,
if we use a Recursive CTE statement something like this:
```
WITH RECURSIVE
CTE_1 AS (
(SELECT 1 AS iteration UNION ALL SELECT 1 AS iteration)
UNION …
-
## Expected Behavior or Use Case
For batch queries, if the CTE has been previously materialized and uses static deterministic filters and functions, and the underlying data remains unchanged,…
-
### What happens?
Below is a subfactorial function definition that works perfectly well
when UHUGEINT is replaced by HUGEINT.
Using HUGEINT, the query `from subfact(20);` produces correct results…
-
### Description
When using MERGE together with CTE on SQL Server I get the error complaining about a missing semicolon after the MERGE statement but the query executes successfully when selected manu…
-
-
### What happens?
The function s() defined below works nicely when called at the top-level,
but when chained together (as in s().s().s() ) performs with exponentially
worse performance (both run-…
-
All databases on Azure SQL Database default to ADR enabled and Read Committed Snapshot enabled so their Persistent Version Store can be highly volatile and can grow to consume all free space in a data…
-
### What happens?
Same query with CTE or subqueries versus with materialized tables runs single- and vs multithreaded.
### To Reproduce
```sql
WITH a AS (
SELECT
key,
mat…
-
I believe the commit `e93a128` introduced a regression on some select queries, for example, on [Good Job](https://github.com/bensheldon/good_job/issues/1551)
The query that it generates now:
```…