Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2a3e059
wip - working version with sqlglot to refactor
collerek Mar 25, 2026
adb4919
wip - extract bracketed names into new dialect
collerek Mar 25, 2026
2547e4e
wip - Rewrite REPLACE INTO → INSERT INTO in _ast.py._parse() before s…
collerek Mar 25, 2026
5b7c6bf
wip - Rewrite REPLACE INTO → INSERT INTO in _ast.py._parse() before s…
collerek Mar 25, 2026
08d9869
add docstings, refactor to simplify most complex methods, add few tes…
collerek Mar 26, 2026
d2a6a3f
add tests from open issues that now passes and some small fixes to ac…
collerek Mar 26, 2026
7ceb764
accept capitalization and explicit as from sqlglot as opinionated def…
collerek Mar 27, 2026
41029ff
simplify logic, refactor into classes with related functionalities
collerek Mar 30, 2026
bb4a67d
additional simplification and cleanup
collerek Mar 30, 2026
a04ab05
remove unnecessary wrappers
collerek Mar 30, 2026
f8b890f
further simplification - add also architecture overview with charts a…
collerek Mar 30, 2026
4e9176e
next portion of cleanup, renaming files, update also agents.md file, …
collerek Mar 31, 2026
3e50cf3
refactor other functionalities from ast parser into separate classes
collerek Mar 31, 2026
9ce3ab3
change to ruff also in CI. add mypy and fix typing errors, add mypy t…
collerek Mar 31, 2026
b3744ac
fix remaining mypy errors in untyped code
collerek Mar 31, 2026
9828bfe
further fixes and duplication cleanup
collerek Mar 31, 2026
9b967db
fix unused code, bump coverage - add todo to revisit corner cases lat…
collerek Mar 31, 2026
9ce3bdd
add features to handle unnamed queries, extracting properly hive tabl…
collerek Apr 1, 2026
67725cd
fix mypy - add additional test for next already solved issue
collerek Apr 1, 2026
f718f3c
add additional test for next already solved issue
collerek Apr 1, 2026
404754e
remove unreachable stars without table node handling - it's either ra…
collerek Apr 1, 2026
4f36f29
raise more meaningful error on invalid queries, raise on cte without …
collerek Apr 2, 2026
0b26278
reorder methods, refactor complicated conditions into helper methods,…
collerek Apr 2, 2026
86a5adc
handle redshift append clause with custom dialect, clean up table ext…
collerek Apr 2, 2026
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
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ jobs:
if: "${{ steps.metadata.outputs.update-type ==
'version-update:semver-minor' ||
steps.metadata.outputs.update-type ==
'version-update:semver-patch' ||
steps.metadata.outputs.dependency-names ==
'black' }}"
'version-update:semver-patch' }}"

# https://cli.github.com/manual/gh_pr_merge
run: gh pr merge --auto --squash "$PR_URL"
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/black.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint

on:
push:
branches: [ master ]
pull_request:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Install Poetry
uses: snok/install-poetry@v1.4.1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install dependencies with poetry
run: poetry install --no-root

- name: Lint with ruff
run: make lint
6 changes: 0 additions & 6 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:
- name: Install Python wheel support to speed up things
run: pip install wheel

- name: Pre-install black
run: pip install black

# https://github.com/marketplace/actions/install-poetry-action
- name: Install Poetry
uses: snok/install-poetry@v1.4.1
Expand Down Expand Up @@ -77,8 +74,5 @@ jobs:
pip install coveralls
poetry run coveralls --service=github

- name: Lint with pylint
run: make lint

- name: Build a distribution package
run: poetry build -vvv
30 changes: 30 additions & 0 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Type Check

on:
push:
branches: [ master ]
pull_request:

jobs:
type-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Install Poetry
uses: snok/install-poetry@v1.4.1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install dependencies with poetry
run: poetry install --no-root

- name: Type check with mypy
run: make type_check
Loading