Skip to content

Commit

Permalink
Merge pull request #267 from moj-analytical-services/bump_sqlglot_ver…
Browse files Browse the repository at this point in the history
…sion

Bump sqlglot version
  • Loading branch information
RobinL committed Feb 1, 2022
2 parents a4b836d + a70d5fe commit 50a1ebf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
32 changes: 21 additions & 11 deletions CHANGELOG.md
Expand Up @@ -5,7 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.1.0]
## 2.1.3

### Fixed

Versions of sqlglot before 1.18.0 could not parse the spark sql `left` and `right` functions - see [here](https://github.com/tobymao/sqlglot/issues/58).

As a result, if `left` or `right` are used in the user's custom sql case expressions, Splink will produce an error.

This release bumps the version in the requirement to fix this problem.

## 2.1.0

### Added

Expand All @@ -15,29 +25,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Note that Splink now has a depedency on `sqlglot`, a no-dependency SQL parser.

## [2.0.4]
## 2.0.4

### Added

- Add function to analyse blocking rules `from splink.analyse_blocking_rule import analyse_blocking_rule` in https://github.com/moj-analytical-services/splink/pull/260

**Full Changelog**: https://github.com/moj-analytical-services/splink/compare/v2.0.3...v2.0.4

## [2.0.3]
## 2.0.3

### Added

- Gamma distribution chart by @RobinL in https://github.com/moj-analytical-services/splink/pull/246

**Full Changelog**: https://github.com/moj-analytical-services/splink/compare/v2.0.2...v2.0.3

## [2.0.2]
## 2.0.2

### Added

- Add function to compute m values from labelled data by @RobinL in https://github.com/moj-analytical-services/splink/pull/248

## [2.0.1]
## 2.0.1

### Added

Expand All @@ -47,7 +57,7 @@ Note that Splink now has a depedency on `sqlglot`, a no-dependency SQL parser.

- Allow match weight to be used in the diagnostic histogram by @RobinL in https://github.com/moj-analytical-services/splink/pull/239

## [2.0.0]
## 2.0.0

### Changed

Expand All @@ -67,7 +77,7 @@ Note that Splink now has a depedency on `sqlglot`, a no-dependency SQL parser.

- Since term frequency adjustments are no longer an ex-post step, there's no longer a need for them to be calculated separately. Splink therefore no longer outputs `tf_adjusted_match_prob`. Instead, TF adjustments are included within `match_probability`

## [1.0.5]
## 1.0.5

### Fixed

Expand All @@ -78,17 +88,17 @@ Note that Splink now has a depedency on `sqlglot`, a no-dependency SQL parser.
- `m` and `u` probabilities are now reset to `None` rather than `0` in EM iteration when they cannot be estimated
- Now use `_repr_pretty_` so that objects display nicely in Jupyter Lab rather than `__repr__`, which had been interfering with the interpretatino of stack trace errors

## [1.0.3] - 2020-02-04
## 1.0.3 - 2020-02-04

- Bug whereby Splink lowercased case expressions, see [here](https://github.com/moj-analytical-services/splink/issues/174)

## [1.0.2] - 2020-02-02
## 1.0.2 - 2020-02-02

### Changed

- Improve estimate comparison charts, including tooltips and better labels

## [1.0.1] - 2020-01-31
## 1.0.1 - 2020-01-31

### Changed

Expand All @@ -100,7 +110,7 @@ Note that Splink now has a depedency on `sqlglot`, a no-dependency SQL parser.

- m and u history charts now display barchart correctly

## [1.0.0] - 2020-01-20
## 1.0.0 - 2020-01-20

### Added

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "splink"
version = "2.1.2"
version = "2.1.3"
description = "Implementation of Fellegi-Sunter's canonical model of record linkage in Apache Spark, including EM algorithm to estimate parameters"
authors = ["Robin Linacre <robinlinacre@hotmail.com>", "Sam Lindsay", "Theodore Manassis"]
license = "MIT"
Expand All @@ -12,7 +12,7 @@ readme = "README.md"
python = "^3.6"
jsonschema = "^3.2"
typeguard = "^2.10.0"
sqlglot = "^1.17.1"
sqlglot = "^1.18.0"

[tool.poetry.dev-dependencies]
pytest = "^5.3"
Expand Down

0 comments on commit 50a1ebf

Please sign in to comment.