diffdb-core 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. {diffdb_core-0.1.0/src/diffdb_core.egg-info → diffdb_core-0.1.1}/PKG-INFO +21 -18
  2. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/README.md +20 -17
  3. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/__init__.py +1 -1
  4. {diffdb_core-0.1.0 → diffdb_core-0.1.1/src/diffdb_core.egg-info}/PKG-INFO +21 -18
  5. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/LICENSE.md +0 -0
  6. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/MANIFEST.in +0 -0
  7. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/pyproject.toml +0 -0
  8. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/setup.cfg +0 -0
  9. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/concurrency/__init__.py +0 -0
  10. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/concurrency/pool.py +0 -0
  11. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/concurrency/stream.py +0 -0
  12. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/core/__init__.py +0 -0
  13. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/core/differ.py +0 -0
  14. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/core/hash_differ.py +0 -0
  15. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/core/segment.py +0 -0
  16. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/core/sql.py +0 -0
  17. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/core/summary.py +0 -0
  18. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/__init__.py +0 -0
  19. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/_connect.py +0 -0
  20. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/base.py +0 -0
  21. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/bigquery.py +0 -0
  22. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/clickhouse.py +0 -0
  23. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/databricks.py +0 -0
  24. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/_base.yaml +0 -0
  25. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/bigquery.yaml +0 -0
  26. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/clickhouse.yaml +0 -0
  27. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/databricks.yaml +0 -0
  28. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/duckdb.yaml +0 -0
  29. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/mysql.yaml +0 -0
  30. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/oracle.yaml +0 -0
  31. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/postgresql.yaml +0 -0
  32. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/presto.yaml +0 -0
  33. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/redshift.yaml +0 -0
  34. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/snowflake.yaml +0 -0
  35. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/trino.yaml +0 -0
  36. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/dialects/vertica.yaml +0 -0
  37. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/duckdb.py +0 -0
  38. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/mysql.py +0 -0
  39. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/oracle.py +0 -0
  40. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/postgresql.py +0 -0
  41. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/presto.py +0 -0
  42. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/redshift.py +0 -0
  43. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/snowflake.py +0 -0
  44. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/trino.py +0 -0
  45. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/vertica.py +0 -0
  46. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/databases/yaml_dialect.py +0 -0
  47. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/geometry/__init__.py +0 -0
  48. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/geometry/arithmetic.py +0 -0
  49. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/geometry/bisection.py +0 -0
  50. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/geometry/vector.py +0 -0
  51. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/telemetry/__init__.py +0 -0
  52. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/telemetry/info_tree.py +0 -0
  53. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/telemetry/query_tracker.py +0 -0
  54. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/types.py +0 -0
  55. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb/utils.py +0 -0
  56. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb_core.egg-info/SOURCES.txt +0 -0
  57. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb_core.egg-info/dependency_links.txt +0 -0
  58. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb_core.egg-info/requires.txt +0 -0
  59. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/src/diffdb_core.egg-info/top_level.txt +0 -0
  60. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/tests/golden/dialect_sql.json +0 -0
  61. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/tests/golden/query_sql.json +0 -0
  62. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/tests/test_connect.py +0 -0
  63. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/tests/test_dialects.py +0 -0
  64. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/tests/test_diffdb_core.py +0 -0
  65. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/tests/test_e2e_duckdb.py +0 -0
  66. {diffdb_core-0.1.0 → diffdb_core-0.1.1}/tests/test_query_snapshot.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffdb-core
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Cross-database table diffing by recursive checksum bisection, with declarative YAML SQL dialects
5
5
  Author: Sarath Mohan
6
6
  License: MIT
@@ -61,7 +61,8 @@ engines and a `FULL OUTER JOIN` isn't possible.
61
61
  Databricks, DuckDB, Trino, Presto, ClickHouse, Vertica.
62
62
  - **Any pair**: the source and target can be different engines; each side renders values to the same text before hashing.
63
63
  - **No metadata reads**: you pass the columns, their native types and optional SQL transform rules, so the
64
- engine sends only four read-only query shapes and never touches the catalog.
64
+ engine sends only four read-only query shapes and never touches the catalog. (The one exception: an Oracle
65
+ connection reads `NLS_CHARACTERSET` once when it opens, unless `hash_charset` is given.)
65
66
  - **Non-unique keys** work: bisection columns need only be selective, and duplicate rows are counted.
66
67
  - **Per-key summary**: changed rows with their differing columns, source-only and target-only rows, duplicate keys.
67
68
  - **Telemetry**: every query, row count, checksum and duration can be captured for auditing.
@@ -153,22 +154,24 @@ An existing `Database` can be passed to `connect_to_table()` instead of a URI, s
153
154
  4. **Download & compare**: only those small ranges are downloaded and compared in memory.
154
155
  5. **Summarize**: `summarize()` pairs the differing rows by `key_columns` (default: the bisection columns).
155
156
 
156
- For a table bisected on `(ADDRESS_SK, ORACLE_COLUMN_NAME)` the checksum queries look like this. Oracle (database
157
- character set isn't AL32UTF8, so the row is converted first, to hash the same bytes as PostgreSQL; detected from
157
+ For a table bisected on `(ORDER_ID, LINE_CODE)`, with columns `ORDER_ID NUMBER(12,0)` / `bigint`,
158
+ `LINE_CODE VARCHAR2(20)` / `varchar(20)`, `UPDATED_AT TIMESTAMP(6)` / `timestamp(6)` and
159
+ `UPDATED_BY VARCHAR2(30)` / `varchar(30)`, the checksum queries look like this. Oracle (database character set
160
+ isn't AL32UTF8, so the row is converted first, to hash the same bytes as PostgreSQL; detected from
158
161
  `NLS_CHARACTERSET` or forced with a `hash_charset` connection setting):
159
162
 
160
163
  ```sql
161
164
  SELECT
162
165
  count(*),
163
166
  sum(to_number(substr(standard_hash(CONVERT((
164
- NVL(to_char("ADDRESS_SK", 'FM99999999999999999999999999999999999999'), '<null>')
165
- || '|' || NVL("ORACLE_COLUMN_NAME", '<null>')
166
- || '|' || NVL(to_char(cast(("UPDATE_TMSTMP" + INTERVAL '+5' HOUR) as timestamp(6)), 'YYYY-MM-DD HH24:MI:SS.FF6'), '<null>')
167
- || '|' || NVL("UPDATE_USER_ID", '<null>')
167
+ NVL(to_char("ORDER_ID", 'FM99999999999999999999999999999999999999'), '<null>')
168
+ || '|' || NVL("LINE_CODE", '<null>')
169
+ || '|' || NVL(to_char(cast("UPDATED_AT" as timestamp(6)), 'YYYY-MM-DD HH24:MI:SS.FF6'), '<null>')
170
+ || '|' || NVL("UPDATED_BY", '<null>')
168
171
  ), 'AL32UTF8'), 'MD5'), 18), 'xxxxxxxxxxxxxxx'))
169
- FROM "SALES"."ADDRESS_AUDIT"
170
- WHERE ("ADDRESS_SK" >= 1405) AND ("ORACLE_COLUMN_NAME" >= 'active_ind')
171
- AND ("ADDRESS_SK" < 2662) AND ("ORACLE_COLUMN_NAME" < 'dffkhzQ2yoa4QcQl')
172
+ FROM "SALES"."ORDER_LINE"
173
+ WHERE ("ORDER_ID" >= 1405) AND ("LINE_CODE" >= 'A-001')
174
+ AND ("ORDER_ID" < 2662) AND ("LINE_CODE" < 'K-250')
172
175
  ```
173
176
 
174
177
  PostgreSQL (with a `COLLATE "C"` transform rule on the string bisection column, see Limitations):
@@ -177,14 +180,14 @@ PostgreSQL (with a `COLLATE "C"` transform rule on the string bisection column,
177
180
  SELECT
178
181
  count(*),
179
182
  sum(('x' || substring(md5((
180
- coalesce("address_sk"::varchar, '<null>')
181
- || '|' || coalesce(("oracle_column_name" COLLATE "C"), '<null>')
182
- || '|' || coalesce(to_char("update_tmstmp"::timestamp(6), 'YYYY-mm-dd HH24:MI:SS.US'), '<null>')
183
- || '|' || coalesce("update_user_id", '<null>')
183
+ coalesce("order_id"::varchar, '<null>')
184
+ || '|' || coalesce(("line_code" COLLATE "C"), '<null>')
185
+ || '|' || coalesce(to_char("updated_at"::timestamp(6), 'YYYY-mm-dd HH24:MI:SS.US'), '<null>')
186
+ || '|' || coalesce("updated_by", '<null>')
184
187
  )), 18))::bit(60)::bigint)
185
- FROM "sales"."address_audit"
186
- WHERE ("address_sk" >= 1405) AND (("oracle_column_name" COLLATE "C") >= 'active_ind')
187
- AND ("address_sk" < 2662) AND (("oracle_column_name" COLLATE "C") < 'dffkhzQ2yoa4QcQl')
188
+ FROM "sales"."order_line"
189
+ WHERE ("order_id" >= 1405) AND (("line_code" COLLATE "C") >= 'A-001')
190
+ AND ("order_id" < 2662) AND (("line_code" COLLATE "C") < 'K-250')
188
191
  ```
189
192
 
190
193
  ## Defining columns
@@ -12,7 +12,8 @@ engines and a `FULL OUTER JOIN` isn't possible.
12
12
  Databricks, DuckDB, Trino, Presto, ClickHouse, Vertica.
13
13
  - **Any pair**: the source and target can be different engines; each side renders values to the same text before hashing.
14
14
  - **No metadata reads**: you pass the columns, their native types and optional SQL transform rules, so the
15
- engine sends only four read-only query shapes and never touches the catalog.
15
+ engine sends only four read-only query shapes and never touches the catalog. (The one exception: an Oracle
16
+ connection reads `NLS_CHARACTERSET` once when it opens, unless `hash_charset` is given.)
16
17
  - **Non-unique keys** work: bisection columns need only be selective, and duplicate rows are counted.
17
18
  - **Per-key summary**: changed rows with their differing columns, source-only and target-only rows, duplicate keys.
18
19
  - **Telemetry**: every query, row count, checksum and duration can be captured for auditing.
@@ -104,22 +105,24 @@ An existing `Database` can be passed to `connect_to_table()` instead of a URI, s
104
105
  4. **Download & compare**: only those small ranges are downloaded and compared in memory.
105
106
  5. **Summarize**: `summarize()` pairs the differing rows by `key_columns` (default: the bisection columns).
106
107
 
107
- For a table bisected on `(ADDRESS_SK, ORACLE_COLUMN_NAME)` the checksum queries look like this. Oracle (database
108
- character set isn't AL32UTF8, so the row is converted first, to hash the same bytes as PostgreSQL; detected from
108
+ For a table bisected on `(ORDER_ID, LINE_CODE)`, with columns `ORDER_ID NUMBER(12,0)` / `bigint`,
109
+ `LINE_CODE VARCHAR2(20)` / `varchar(20)`, `UPDATED_AT TIMESTAMP(6)` / `timestamp(6)` and
110
+ `UPDATED_BY VARCHAR2(30)` / `varchar(30)`, the checksum queries look like this. Oracle (database character set
111
+ isn't AL32UTF8, so the row is converted first, to hash the same bytes as PostgreSQL; detected from
109
112
  `NLS_CHARACTERSET` or forced with a `hash_charset` connection setting):
110
113
 
111
114
  ```sql
112
115
  SELECT
113
116
  count(*),
114
117
  sum(to_number(substr(standard_hash(CONVERT((
115
- NVL(to_char("ADDRESS_SK", 'FM99999999999999999999999999999999999999'), '<null>')
116
- || '|' || NVL("ORACLE_COLUMN_NAME", '<null>')
117
- || '|' || NVL(to_char(cast(("UPDATE_TMSTMP" + INTERVAL '+5' HOUR) as timestamp(6)), 'YYYY-MM-DD HH24:MI:SS.FF6'), '<null>')
118
- || '|' || NVL("UPDATE_USER_ID", '<null>')
118
+ NVL(to_char("ORDER_ID", 'FM99999999999999999999999999999999999999'), '<null>')
119
+ || '|' || NVL("LINE_CODE", '<null>')
120
+ || '|' || NVL(to_char(cast("UPDATED_AT" as timestamp(6)), 'YYYY-MM-DD HH24:MI:SS.FF6'), '<null>')
121
+ || '|' || NVL("UPDATED_BY", '<null>')
119
122
  ), 'AL32UTF8'), 'MD5'), 18), 'xxxxxxxxxxxxxxx'))
120
- FROM "SALES"."ADDRESS_AUDIT"
121
- WHERE ("ADDRESS_SK" >= 1405) AND ("ORACLE_COLUMN_NAME" >= 'active_ind')
122
- AND ("ADDRESS_SK" < 2662) AND ("ORACLE_COLUMN_NAME" < 'dffkhzQ2yoa4QcQl')
123
+ FROM "SALES"."ORDER_LINE"
124
+ WHERE ("ORDER_ID" >= 1405) AND ("LINE_CODE" >= 'A-001')
125
+ AND ("ORDER_ID" < 2662) AND ("LINE_CODE" < 'K-250')
123
126
  ```
124
127
 
125
128
  PostgreSQL (with a `COLLATE "C"` transform rule on the string bisection column, see Limitations):
@@ -128,14 +131,14 @@ PostgreSQL (with a `COLLATE "C"` transform rule on the string bisection column,
128
131
  SELECT
129
132
  count(*),
130
133
  sum(('x' || substring(md5((
131
- coalesce("address_sk"::varchar, '<null>')
132
- || '|' || coalesce(("oracle_column_name" COLLATE "C"), '<null>')
133
- || '|' || coalesce(to_char("update_tmstmp"::timestamp(6), 'YYYY-mm-dd HH24:MI:SS.US'), '<null>')
134
- || '|' || coalesce("update_user_id", '<null>')
134
+ coalesce("order_id"::varchar, '<null>')
135
+ || '|' || coalesce(("line_code" COLLATE "C"), '<null>')
136
+ || '|' || coalesce(to_char("updated_at"::timestamp(6), 'YYYY-mm-dd HH24:MI:SS.US'), '<null>')
137
+ || '|' || coalesce("updated_by", '<null>')
135
138
  )), 18))::bit(60)::bigint)
136
- FROM "sales"."address_audit"
137
- WHERE ("address_sk" >= 1405) AND (("oracle_column_name" COLLATE "C") >= 'active_ind')
138
- AND ("address_sk" < 2662) AND (("oracle_column_name" COLLATE "C") < 'dffkhzQ2yoa4QcQl')
139
+ FROM "sales"."order_line"
140
+ WHERE ("order_id" >= 1405) AND (("line_code" COLLATE "C") >= 'A-001')
141
+ AND ("order_id" < 2662) AND (("line_code" COLLATE "C") < 'K-250')
139
142
  ```
140
143
 
141
144
  ## Defining columns
@@ -17,7 +17,7 @@ from .geometry import Vector
17
17
  from .telemetry import QueryTracker
18
18
  from .types import DbPath
19
19
 
20
- __version__ = "0.1.0"
20
+ __version__ = "0.1.1"
21
21
 
22
22
 
23
23
  def connect_to_table(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffdb-core
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Cross-database table diffing by recursive checksum bisection, with declarative YAML SQL dialects
5
5
  Author: Sarath Mohan
6
6
  License: MIT
@@ -61,7 +61,8 @@ engines and a `FULL OUTER JOIN` isn't possible.
61
61
  Databricks, DuckDB, Trino, Presto, ClickHouse, Vertica.
62
62
  - **Any pair**: the source and target can be different engines; each side renders values to the same text before hashing.
63
63
  - **No metadata reads**: you pass the columns, their native types and optional SQL transform rules, so the
64
- engine sends only four read-only query shapes and never touches the catalog.
64
+ engine sends only four read-only query shapes and never touches the catalog. (The one exception: an Oracle
65
+ connection reads `NLS_CHARACTERSET` once when it opens, unless `hash_charset` is given.)
65
66
  - **Non-unique keys** work: bisection columns need only be selective, and duplicate rows are counted.
66
67
  - **Per-key summary**: changed rows with their differing columns, source-only and target-only rows, duplicate keys.
67
68
  - **Telemetry**: every query, row count, checksum and duration can be captured for auditing.
@@ -153,22 +154,24 @@ An existing `Database` can be passed to `connect_to_table()` instead of a URI, s
153
154
  4. **Download & compare**: only those small ranges are downloaded and compared in memory.
154
155
  5. **Summarize**: `summarize()` pairs the differing rows by `key_columns` (default: the bisection columns).
155
156
 
156
- For a table bisected on `(ADDRESS_SK, ORACLE_COLUMN_NAME)` the checksum queries look like this. Oracle (database
157
- character set isn't AL32UTF8, so the row is converted first, to hash the same bytes as PostgreSQL; detected from
157
+ For a table bisected on `(ORDER_ID, LINE_CODE)`, with columns `ORDER_ID NUMBER(12,0)` / `bigint`,
158
+ `LINE_CODE VARCHAR2(20)` / `varchar(20)`, `UPDATED_AT TIMESTAMP(6)` / `timestamp(6)` and
159
+ `UPDATED_BY VARCHAR2(30)` / `varchar(30)`, the checksum queries look like this. Oracle (database character set
160
+ isn't AL32UTF8, so the row is converted first, to hash the same bytes as PostgreSQL; detected from
158
161
  `NLS_CHARACTERSET` or forced with a `hash_charset` connection setting):
159
162
 
160
163
  ```sql
161
164
  SELECT
162
165
  count(*),
163
166
  sum(to_number(substr(standard_hash(CONVERT((
164
- NVL(to_char("ADDRESS_SK", 'FM99999999999999999999999999999999999999'), '<null>')
165
- || '|' || NVL("ORACLE_COLUMN_NAME", '<null>')
166
- || '|' || NVL(to_char(cast(("UPDATE_TMSTMP" + INTERVAL '+5' HOUR) as timestamp(6)), 'YYYY-MM-DD HH24:MI:SS.FF6'), '<null>')
167
- || '|' || NVL("UPDATE_USER_ID", '<null>')
167
+ NVL(to_char("ORDER_ID", 'FM99999999999999999999999999999999999999'), '<null>')
168
+ || '|' || NVL("LINE_CODE", '<null>')
169
+ || '|' || NVL(to_char(cast("UPDATED_AT" as timestamp(6)), 'YYYY-MM-DD HH24:MI:SS.FF6'), '<null>')
170
+ || '|' || NVL("UPDATED_BY", '<null>')
168
171
  ), 'AL32UTF8'), 'MD5'), 18), 'xxxxxxxxxxxxxxx'))
169
- FROM "SALES"."ADDRESS_AUDIT"
170
- WHERE ("ADDRESS_SK" >= 1405) AND ("ORACLE_COLUMN_NAME" >= 'active_ind')
171
- AND ("ADDRESS_SK" < 2662) AND ("ORACLE_COLUMN_NAME" < 'dffkhzQ2yoa4QcQl')
172
+ FROM "SALES"."ORDER_LINE"
173
+ WHERE ("ORDER_ID" >= 1405) AND ("LINE_CODE" >= 'A-001')
174
+ AND ("ORDER_ID" < 2662) AND ("LINE_CODE" < 'K-250')
172
175
  ```
173
176
 
174
177
  PostgreSQL (with a `COLLATE "C"` transform rule on the string bisection column, see Limitations):
@@ -177,14 +180,14 @@ PostgreSQL (with a `COLLATE "C"` transform rule on the string bisection column,
177
180
  SELECT
178
181
  count(*),
179
182
  sum(('x' || substring(md5((
180
- coalesce("address_sk"::varchar, '<null>')
181
- || '|' || coalesce(("oracle_column_name" COLLATE "C"), '<null>')
182
- || '|' || coalesce(to_char("update_tmstmp"::timestamp(6), 'YYYY-mm-dd HH24:MI:SS.US'), '<null>')
183
- || '|' || coalesce("update_user_id", '<null>')
183
+ coalesce("order_id"::varchar, '<null>')
184
+ || '|' || coalesce(("line_code" COLLATE "C"), '<null>')
185
+ || '|' || coalesce(to_char("updated_at"::timestamp(6), 'YYYY-mm-dd HH24:MI:SS.US'), '<null>')
186
+ || '|' || coalesce("updated_by", '<null>')
184
187
  )), 18))::bit(60)::bigint)
185
- FROM "sales"."address_audit"
186
- WHERE ("address_sk" >= 1405) AND (("oracle_column_name" COLLATE "C") >= 'active_ind')
187
- AND ("address_sk" < 2662) AND (("oracle_column_name" COLLATE "C") < 'dffkhzQ2yoa4QcQl')
188
+ FROM "sales"."order_line"
189
+ WHERE ("order_id" >= 1405) AND (("line_code" COLLATE "C") >= 'A-001')
190
+ AND ("order_id" < 2662) AND (("line_code" COLLATE "C") < 'K-250')
188
191
  ```
189
192
 
190
193
  ## Defining columns
File without changes
File without changes
File without changes
File without changes