Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main future branch #9

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
7cf0e04
24.11.02 fix broken tests
belamenso Nov 2, 2024
81f1ced
Merge pull request #2 from belamenso/24.11.02-fix-broken-tests
belamenso Nov 2, 2024
7792823
Merge branch 'aherlihy:main' into main
belamenso Nov 10, 2024
c87539c
Docker instrumentation for DBs and tests
belamenso Nov 13, 2024
a3334b8
Check connection to the DBs
belamenso Nov 13, 2024
2a2bbbb
Testsuite separation is now via MUnit tags
belamenso Nov 15, 2024
1d823b4
Also instument the H2 DB
belamenso Nov 15, 2024
8d29f44
test: rename integration test for clarity
belamenso Nov 15, 2024
5c8b3dc
Development section of the README
belamenso Nov 15, 2024
2d39fdd
Better connection tests for H2
belamenso Nov 17, 2024
b9f73c2
Seal Ord
belamenso Nov 17, 2024
e1a0859
Dialect specialization for string literals and quoting identifiers
belamenso Nov 17, 2024
ec61dcf
Optimized string literal quoting
belamenso Nov 18, 2024
1c2043a
Helper funtions to invoke DBs
belamenso Nov 18, 2024
52c774a
Refactor LIKE string quoting tests for clarity
belamenso Nov 18, 2024
e4e0942
Config (for now just case conversions), fix implicit propagation
belamenso Nov 18, 2024
265e518
DB test: add parametrization over all backends
belamenso Nov 18, 2024
d9b901f
Rename munit tag `expensiveTest` -> `needsDBs`
belamenso Nov 18, 2024
1007440
test: we can send and receive unicode
belamenso Nov 18, 2024
a3b70ed
A comment
belamenso Nov 18, 2024
4d71194
whitespace
belamenso Nov 18, 2024
6b1aa54
tests: db connection helpers also need a version without implicits fo…
belamenso Nov 18, 2024
014e7dd
Dialect feature: fetch random float between 0 and 1
belamenso Nov 18, 2024
854c00c
docker: update info message
belamenso Nov 18, 2024
81d80ae
dialect: sqlite: add random float
belamenso Nov 19, 2024
c09831a
dialect: add randomUUID()
belamenso Nov 19, 2024
a9d736d
dialect feature: randomInt(a, b)
belamenso Nov 19, 2024
2deefbc
dialect: string lengths
belamenso Nov 19, 2024
39b0a5f
tests: helper method to test single expression
belamenso Nov 19, 2024
60c4518
remove mistaken import
belamenso Nov 19, 2024
8350d14
dialect: string upper/lower
belamenso Nov 19, 2024
7295e8c
Dialect generation binds as late as possible
belamenso Nov 19, 2024
b184e46
comment
belamenso Nov 19, 2024
baea56f
implement XOR and test boolean operators, we have terrible precedence…
belamenso Nov 19, 2024
3db7298
a comment
belamenso Nov 19, 2024
6c7a245
a comment
belamenso Nov 19, 2024
fced269
a comment
belamenso Nov 19, 2024
26226a0
remove debug println
belamenso Nov 19, 2024
fc311b0
handle precedence to omit unnecessary ()s
belamenso Nov 19, 2024
a4d7b4c
credit Claude with information extraction tasks from documentation
belamenso Nov 19, 2024
99227a3
Add DataGrip configuration to README.md
belamenso Nov 19, 2024
bac2948
DataGrip configuration screenshot
belamenso Nov 19, 2024
f930dd0
a warning comment
belamenso Nov 19, 2024
d4b12c2
cache QueryIRNode.toSQLString
belamenso Nov 19, 2024
7e76307
readme: current tooling problems
belamenso Nov 19, 2024
5329d4e
update README.md
belamenso Nov 19, 2024
92ab394
add Expr.Minus and workarounds around a scala compiler bug
belamenso Nov 19, 2024
7b13c21
tests: precedence
belamenso Nov 19, 2024
1145015
update README.md
belamenso Nov 19, 2024
6cdf5c2
update README.md
belamenso Nov 19, 2024
6cf7f57
tests: broken dialect selection
belamenso Nov 19, 2024
297483c
work around a parsing bug in Metals
belamenso Nov 19, 2024
5779dee
test: toQueryIR, toSQLString caching
belamenso Nov 19, 2024
c29add2
comments: todos
belamenso Nov 19, 2024
83f1000
whitespace
belamenso Nov 19, 2024
c0d6971
dialects: random* operations are now late-binding
belamenso Nov 19, 2024
90c889f
dialect: finish refactoring of random
belamenso Nov 20, 2024
7a57508
does markdown handle comments?
belamenso Nov 21, 2024
1bf34d5
create documentation/development.md
belamenso Nov 21, 2024
68e6d4e
scala version = 3.5.2
belamenso Nov 21, 2024
4b56629
remove unused code
belamenso Nov 21, 2024
4b2de75
fix the postgresql driver registration issue
belamenso Nov 21, 2024
d8f3654
remove unused import
belamenso Nov 21, 2024
6d753e5
add lit(), True, False
belamenso Nov 21, 2024
1ca7b31
CASE statements
belamenso Nov 21, 2024
97a86f9
enforce arg # for CASE with type system
belamenso Nov 21, 2024
98b560b
basic string operations
belamenso Nov 21, 2024
2052172
string.reverse
belamenso Nov 21, 2024
5daa59f
string.repeat
belamenso Nov 21, 2024
8af0732
string.{lpad, rpad}
belamenso Nov 21, 2024
2bac1ec
string.findPosition
belamenso Nov 21, 2024
a9d7146
remove printlns, use lit() to supress warnings
belamenso Nov 21, 2024
c62adcf
dialect: octet_length generation simplified
belamenso Nov 22, 2024
3b5b5ee
SQL snippets now have precedence metadata
belamenso Nov 22, 2024
5dede04
do not repeat the parameters in macro-like snippets
belamenso Nov 22, 2024
f9e6ffc
RandomFloat is everywhere, no need to be a feature
belamenso Nov 23, 2024
b0595e6
first draft of documentation generation
belamenso Nov 23, 2024
cc0caca
more case conversions handled
belamenso Nov 24, 2024
e329c00
documentation: polyfill tracking, returning sql
belamenso Nov 24, 2024
e7c1fde
first draft of nulls
belamenso Nov 24, 2024
362350a
a comment
belamenso Nov 24, 2024
a3c69be
attempt to use Github CI
belamenso Nov 25, 2024
dca23c0
rename workflows
belamenso Nov 25, 2024
d6d2840
`docker compose` not `docker-compose`
belamenso Nov 25, 2024
0f94b56
do not install docker compose
belamenso Nov 25, 2024
aa8ca34
CI: change directory permissions
belamenso Nov 25, 2024
db8a1e6
CI: better test failure parsing
belamenso Nov 25, 2024
5f9873c
some mathematical operations
belamenso Nov 26, 2024
5839511
first draft of null-safe equality
belamenso Nov 26, 2024
611cf81
=== equality can be weakly-typed if the dialect allows it
belamenso Nov 26, 2024
e2016fd
H2 does not have weakly-typed equality
belamenso Nov 26, 2024
fd3213a
towards per-dialect equality semantics
belamenso Nov 26, 2024
eef06ff
fix failing tests
belamenso Nov 26, 2024
28af743
equality semantics is now fully dialect-specific
belamenso Nov 26, 2024
4812a45
simplify numeric comparisons
belamenso Nov 26, 2024
a760ea8
simplify arithmetic operations
belamenso Nov 26, 2024
a479d9c
driver converts fetched values to native types again
belamenso Dec 1, 2024
6efe023
remove that println
belamenso Dec 1, 2024
3b0180b
Gte works now
belamenso Dec 1, 2024
56da5d9
a way to handle NULLS gracefully: Option
belamenso Dec 1, 2024
9b61ea7
driver: use int column indices
belamenso Dec 1, 2024
fc84a66
something towards Option.map, unclear if correct
belamenso Dec 1, 2024
4b2e4e9
some printlns
belamenso Dec 1, 2024
525bc81
tables do not need to be named when generated from a case class
belamenso Dec 1, 2024
e03a4c2
a comment
belamenso Dec 1, 2024
fbc8420
remove line that doesn't work on github CI
belamenso Dec 1, 2024
cf36b35
casts to a predefined set of types
belamenso Dec 1, 2024
2f8cca6
a comment
belamenso Dec 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.dockerignore
.git/
.gitignore
target/
project/target/
test-results/
*.md
*.log
.bloop/
.metals/
.bsp/
54 changes: 54 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test

on:
push:
branches:
- better-containerization
pull_request:
branches:
- better-containerization

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Create directories and set permissions
run: |
mkdir -p test-results
mkdir -p target
sudo chown -R 1000:1000 test-results
sudo chown -R 1000:1000 target
sudo chmod -R 777 test-results
sudo chmod -R 777 target

- name: Build and run tests
run: |
docker compose --profile dbs --profile tests up \
--build \
--exit-code-from main \
--abort-on-container-exit

- name: Upload test results
if: always() # Run even if tests fail
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results/
retention-days: 14

- name: Check test output for failures
run: |
if grep -q "Passed: Total .*, Failed 0, Errors 0," test-results/test-output_*.log; then
echo "All tests passed!"
exit 0
else
echo "Tests failed!"
exit 1
fi

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,4 @@ cs

# Coursier test product
compiler/test-coursier/run/*.jar
/test-results/
43 changes: 43 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM debian:12

# Install all packages in one layer, including sbt repository setup
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
unzip \
netcat-openbsd \
sqlite3 \
ca-certificates \
gnupg && \
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | tee /etc/apt/sources.list.d/sbt.list && \
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | apt-key add && \
curl -L https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb -o jdk.deb && \
apt-get update && \
apt-get install -y --no-install-recommends \
./jdk.deb \
sbt && \
rm jdk.deb && \
rm -rf /var/lib/apt/lists/*

# Install DuckDB
RUN curl -L https://github.com/duckdb/duckdb/releases/download/v0.8.1/duckdb_cli-linux-amd64.zip -o duckdb.zip \
&& unzip duckdb.zip \
&& mv duckdb /usr/local/bin/ \
&& chmod +x /usr/local/bin/duckdb \
&& rm duckdb.zip

# Run as a non-root user
RUN useradd -m -s /bin/bash appuser \
&& mkdir -p /app /test-results \
&& chown -R appuser:appuser /app /test-results

USER appuser
WORKDIR /app
COPY --chown=appuser:appuser build.sbt ./
COPY --chown=appuser:appuser project ./project
RUN sbt update
COPY --chown=appuser:appuser start.sh /start.sh
RUN chmod +x /start.sh

CMD ["/start.sh"]

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# tyql
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/ASPSQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.min

import tyql.Dialect.ansi.given

@experimental
class ASPSQuery extends QueryBenchmark {
override def name = "asps"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/AncestryQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.{IntLit, min}

import tyql.Dialect.ansi.given

@experimental
class AncestryQuery extends QueryBenchmark {
override def name = "ancestry"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/AndersensQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.{IntLit, min}

import tyql.Dialect.ansi.given

@experimental
class AndersensQuery extends QueryBenchmark {
override def name = "andersens"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/BOMQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.max

import tyql.Dialect.ansi.given

@experimental
class BOMQuery extends QueryBenchmark {
override def name = "bom"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/CBAQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{unrestrictedBagFix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, min}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class CBAQuery extends QueryBenchmark {
override def name = "cba"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/CSPAQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.unrestrictedFix
import tyql.Expr.{IntLit, StringLit, min}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class CSPAQuery extends QueryBenchmark {
override def name = "cspa"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/CompanyControlQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{fix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, min, sum}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class CompanyControlQuery extends QueryBenchmark {
override def name = "cc"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/DataflowQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.{IntLit, min}

import tyql.Dialect.ansi.given

@experimental
class DataflowQuery extends QueryBenchmark {
override def name = "dataflow"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/EvenOddQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.fix
import tyql.Expr.{IntLit, StringLit, min}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class EvenOddQuery extends QueryBenchmark {
override def name = "evenodd"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/JavaPointsTo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{fix, unrestrictedFix, unrestrictedBagFix}
import tyql.Expr.{IntLit, StringLit, min, sum}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class JavaPointsTo extends QueryBenchmark {
override def name = "javapointsto"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/OrbitsQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table, Query}
import tyql.Expr.max

import tyql.Dialect.ansi.given

@experimental
class OrbitsQuery extends QueryBenchmark {
override def name = "orbits"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/PartyQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{unrestrictedBagFix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, count}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class PartyQuery extends QueryBenchmark {
override def name = "party"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/PointsToCountQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{fix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, min, sum}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class PointsToCountQuery extends QueryBenchmark {
override def name = "pointstocount"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/SSSPQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.min

import tyql.Dialect.ansi.given

@experimental
class SSSPQuery extends QueryBenchmark {
override def name = "sssp"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/TCQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import scalasql.{Table as ScalaSQLTable, Expr, query}
import scalasql.PostgresDialect.*
import scalasql.core.SqlStr.SqlStringSyntax

import tyql.Dialect.ansi.given

@experimental
class TCQuery extends QueryBenchmark {
override def name = "tc"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/QueryBenchmark/TrustChainQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{unrestrictedBagFix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, count}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class TrustChainQuery extends QueryBenchmark {
override def name = "trustchain"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/ASPSQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.min

import tyql.Dialect.ansi.given

@experimental
class TOASPSQuery extends QueryBenchmark {
override def name = "asps"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.{IntLit, min}

import tyql.Dialect.ansi.given

@experimental
class TOAncestryQuery extends QueryBenchmark {
override def name = "ancestry"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.{IntLit, min}

import tyql.Dialect.ansi.given

@experimental
class TOAndersensQuery extends QueryBenchmark {
override def name = "andersens"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/BOMQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.max

import tyql.Dialect.ansi.given

@experimental
class TOBOMQuery extends QueryBenchmark {
override def name = "bom"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/CBAQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{unrestrictedBagFix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, min}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class TOCBAQuery extends QueryBenchmark {
override def name = "cba"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/CSPAQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.unrestrictedFix
import tyql.Expr.{IntLit, StringLit, min}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class TOCSPAQuery extends QueryBenchmark {
override def name = "cspa"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{fix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, min, sum}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class TOCompanyControlQuery extends QueryBenchmark {
override def name = "cc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.{IntLit, min}

import tyql.Dialect.ansi.given

@experimental
class TODataflowQuery extends QueryBenchmark {
override def name = "dataflow"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/EvenOddQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.fix
import tyql.Expr.{IntLit, StringLit, min}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class TOEvenOddQuery extends QueryBenchmark {
override def name = "evenodd"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/JavaPointsTo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{fix, unrestrictedFix, unrestrictedBagFix}
import tyql.Expr.{IntLit, StringLit, min, sum}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class TOJavaPointsTo extends QueryBenchmark {
override def name = "javapointsto"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/OrbitsQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table, Query}
import tyql.Expr.max

import tyql.Dialect.ansi.given

@experimental
class TOOrbitsQuery extends QueryBenchmark {
override def name = "orbits"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/PartyQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{unrestrictedBagFix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, count}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class TOPartyQuery extends QueryBenchmark {
override def name = "party"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import tyql.Query.{fix, unrestrictedFix}
import tyql.Expr.{IntLit, StringLit, min, sum}
import Helpers.*

import tyql.Dialect.ansi.given

@experimental
class TOPointsToCountQuery extends QueryBenchmark {
override def name = "pointstocount"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/SSSPQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import scala.NamedTuple.*
import tyql.{Ord, Table}
import tyql.Expr.min

import tyql.Dialect.ansi.given

@experimental
class TOSSSPQuery extends QueryBenchmark {
override def name = "sssp"
Expand Down
2 changes: 2 additions & 0 deletions bench/src/main/scala/TimeoutQueryBenchmark/TCQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import scalasql.{Table as ScalaSQLTable, Expr, query}
import scalasql.PostgresDialect.*
import scalasql.core.SqlStr.SqlStringSyntax

import tyql.Dialect.ansi.given

@experimental
class TOTCQuery extends QueryBenchmark {
override def name = "tc"
Expand Down
Loading