Skip to content

Commit 68e5807

Browse files
committed
Bump version to 0.3.0, update CHANGELOG
1 parent 567069c commit 68e5807

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Changelog
22

3+
## [0.3.0] - 2026-03-31
4+
5+
### Fixed (generator correctness)
6+
7+
- `SPACE(n)` now emits `SPACE(n)` instead of `REPEAT(' ', n)`
8+
- `VAR_POP(x)` now emits `VAR_POP(x)` instead of `VARIANCE_POP(x)`
9+
- `VAR_SAMP(x)` / `VARIANCE(x)` now emits `VAR_SAMP(x)` instead of `VARIANCE(x)`
10+
- `INSTR(s, sub)` now emits `INSTR(s, sub)` instead of `LOCATE(sub, s)`
11+
- `SUBSTR(s, pos, len)` now emits `SUBSTR` instead of `SUBSTRING`
12+
13+
### Added (parser)
14+
15+
- `SUBSTR` as explicit MaxCompute parser alias for `exp.Substring`
16+
17+
### Changed (internal)
18+
19+
- Dialect split: `maxcompute.py` now delegates to `parser.py` and `generator.py` (mirrors sqlglot's own mypyc-compile refactor)
20+
21+
### Tests
22+
23+
- Regression coverage for ~20 functions previously relying on untested Hive inheritance:
24+
INITCAP, REVERSE, REPEAT, LPAD/RPAD, LTRIM/RTRIM, REGEXP_REPLACE,
25+
REGEXP_EXTRACT_ALL, INSTR, FIND_IN_SET, SUBSTR, SUBSTRING_INDEX,
26+
CONCAT_WS, FORMAT_NUMBER, COLLECT_LIST/SET, VAR_SAMP, VAR_POP,
27+
PERCENTILE, STDDEV, GREATEST/LEAST, CBRT, FACTORIAL, GET_JSON_OBJECT,
28+
JSON_TUPLE
29+
330
## [0.2.0] - 2026-03-31
431

532
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sqlglot-maxcompute"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "MaxCompute dialect plugin for SQLGlot"
55
readme = "README.md"
66
license = { text = "MIT" }

0 commit comments

Comments
 (0)