datajunction-server 0.0.2.dev1__py3-none-any.whl → 0.0.2.dev2__py3-none-any.whl
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.
- datajunction_server/__about__.py +1 -1
- datajunction_server/models/deployment.py +20 -7
- {datajunction_server-0.0.2.dev1.dist-info → datajunction_server-0.0.2.dev2.dist-info}/METADATA +1 -1
- {datajunction_server-0.0.2.dev1.dist-info → datajunction_server-0.0.2.dev2.dist-info}/RECORD +6 -6
- {datajunction_server-0.0.2.dev1.dist-info → datajunction_server-0.0.2.dev2.dist-info}/WHEEL +0 -0
- {datajunction_server-0.0.2.dev1.dist-info → datajunction_server-0.0.2.dev2.dist-info}/entry_points.txt +0 -0
datajunction_server/__about__.py
CHANGED
|
@@ -65,7 +65,7 @@ class ColumnSpec(BaseModel):
|
|
|
65
65
|
and (self.display_name == other.display_name or self.display_name is None)
|
|
66
66
|
and (self.description == other.description or self.description is None)
|
|
67
67
|
and set(self.attributes) == set(other.attributes)
|
|
68
|
-
and self.partition == other.partition
|
|
68
|
+
and (self.partition == other.partition) or (self.partition is None and other.partition is None)
|
|
69
69
|
)
|
|
70
70
|
|
|
71
71
|
|
|
@@ -387,11 +387,11 @@ class MetricSpec(NodeSpec):
|
|
|
387
387
|
super().__eq__(other)
|
|
388
388
|
and self.query_ast.compare(other.query_ast)
|
|
389
389
|
and (self.required_dimensions or []) == (other.required_dimensions or [])
|
|
390
|
-
and self.direction == other.direction
|
|
391
|
-
and self.unit == other.unit
|
|
392
|
-
and self.significant_digits == other.significant_digits
|
|
393
|
-
and self.min_decimal_exponent == other.min_decimal_exponent
|
|
394
|
-
and self.max_decimal_exponent == other.max_decimal_exponent
|
|
390
|
+
and (self.direction == other.direction) or (self.direction is None and other.direction is None)
|
|
391
|
+
and (self.unit == other.unit) or (self.unit is None and other.unit is None)
|
|
392
|
+
and (self.significant_digits == other.significant_digits) or (self.significant_digits is None and other.significant_digits is None)
|
|
393
|
+
and (self.min_decimal_exponent == other.min_decimal_exponent) or (self.min_decimal_exponent is None and other.min_decimal_exponent is None)
|
|
394
|
+
and (self.max_decimal_exponent == other.max_decimal_exponent) or (self.max_decimal_exponent is None and other.max_decimal_exponent is None)
|
|
395
395
|
)
|
|
396
396
|
|
|
397
397
|
|
|
@@ -421,12 +421,25 @@ class CubeSpec(NodeSpec):
|
|
|
421
421
|
]
|
|
422
422
|
|
|
423
423
|
def __eq__(self, other: Any) -> bool:
|
|
424
|
+
print("!!!Comparing cubes", self.rendered_name, other.rendered_name,
|
|
425
|
+
"super:", super().__eq__(other),
|
|
426
|
+
"columns:", (self.columns or []) == (other.columns or []),
|
|
427
|
+
"othercol", ([
|
|
428
|
+
[attr for attr in col.attributes if attr != "primary_key"]
|
|
429
|
+
for col in other.columns
|
|
430
|
+
],
|
|
431
|
+
not any(col.partition for col in other.columns)
|
|
432
|
+
),
|
|
433
|
+
"metrics:", set(self.rendered_metrics) == set(other.rendered_metrics),
|
|
434
|
+
"dimensions:", set(self.rendered_dimensions) == set(other.rendered_dimensions),
|
|
435
|
+
"filters:", (self.rendered_filters or []) == (other.rendered_filters or [])
|
|
436
|
+
)
|
|
424
437
|
return (
|
|
425
438
|
super().__eq__(other)
|
|
426
439
|
and (
|
|
427
440
|
(self.columns or []) == (other.columns or [])
|
|
428
441
|
or (
|
|
429
|
-
self.columns
|
|
442
|
+
not self.columns
|
|
430
443
|
and not any(
|
|
431
444
|
[attr for attr in col.attributes if attr != "primary_key"]
|
|
432
445
|
for col in other.columns
|
{datajunction_server-0.0.2.dev1.dist-info → datajunction_server-0.0.2.dev2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: datajunction-server
|
|
3
|
-
Version: 0.0.2.
|
|
3
|
+
Version: 0.0.2.dev2
|
|
4
4
|
Summary: DataJunction server library for running to a DataJunction server
|
|
5
5
|
Project-URL: Homepage, https://datajunction.io
|
|
6
6
|
Project-URL: Repository, https://github.com/DataJunction/dj
|
{datajunction_server-0.0.2.dev1.dist-info → datajunction_server-0.0.2.dev2.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
datajunction_server/__about__.py,sha256=
|
|
1
|
+
datajunction_server/__about__.py,sha256=kVl_34fkA7KY3Y1J_D8v00tuvI2dTjfSCc1549SHP7g,54
|
|
2
2
|
datajunction_server/__init__.py,sha256=nN5-uJoSVEwuc8n-wMygqeF0Xhxi_zqqbCgutZvAt3E,384
|
|
3
3
|
datajunction_server/alembic.ini,sha256=mclJ_xx8pHfRyZ69SA9ZPqUwZaaQCTyxZ6wBmbrf1bo,3024
|
|
4
4
|
datajunction_server/config.py,sha256=L1zkaiF82S-ciR-wVeILx7CWKSOPPJ90a9zooXVNHEc,5641
|
|
@@ -185,7 +185,7 @@ datajunction_server/models/column.py,sha256=3TCa9dDAb9Q2WEAzpcdqAjKSX3PutbwlS8qG
|
|
|
185
185
|
datajunction_server/models/cube.py,sha256=p6KmqoOVGlziH5k0wXs6qBvgWWQs984Ho6SGplDbtAQ,4459
|
|
186
186
|
datajunction_server/models/cube_materialization.py,sha256=ydMRepDM95b4BBVay_nOYlRtK7OFG3pCDDTRdHe2awU,15787
|
|
187
187
|
datajunction_server/models/database.py,sha256=xhCllbq5ikFNnrPvzuchxQUC9RWogzh73Eqz7Jj0i38,499
|
|
188
|
-
datajunction_server/models/deployment.py,sha256=
|
|
188
|
+
datajunction_server/models/deployment.py,sha256=AgVd2o1dSYtWzpqR3R61-Hja0OVWk_sExh408Gx4iOo,16631
|
|
189
189
|
datajunction_server/models/dialect.py,sha256=uifriawtKR4vi-GG2rdp4eeQkAkD6iLNuarCLQanTxY,3825
|
|
190
190
|
datajunction_server/models/dimensionlink.py,sha256=WaCarxhawOiQqtH1EVS0RQRu9D8Bx6GFonLsdSVgXSs,1551
|
|
191
191
|
datajunction_server/models/engine.py,sha256=Ebuy4HLkURr7mj0pxTj_Y4fEmF0oDen393rnj9fBnR0,466
|
|
@@ -226,7 +226,7 @@ datajunction_server/sql/parsing/backends/grammar/generated/SqlBaseParser.py,sha2
|
|
|
226
226
|
datajunction_server/sql/parsing/backends/grammar/generated/SqlBaseParser.tokens,sha256=JDrzbaKDwIaimAZPYIUzCgzkOEgq0X5-a6_lz78lqgs,8131
|
|
227
227
|
datajunction_server/sql/parsing/backends/grammar/generated/SqlBaseParserListener.py,sha256=vp8wduYkB-T5Xr6HZCSdzAxTHHPrDI5UJZXRJSVhAGA,102464
|
|
228
228
|
datajunction_server/sql/parsing/backends/grammar/generated/SqlBaseParserVisitor.py,sha256=w3V03LgPIHCiqojNyuekBDYqskjOKlKrd0sczQAB_WQ,60290
|
|
229
|
-
datajunction_server-0.0.2.
|
|
230
|
-
datajunction_server-0.0.2.
|
|
231
|
-
datajunction_server-0.0.2.
|
|
232
|
-
datajunction_server-0.0.2.
|
|
229
|
+
datajunction_server-0.0.2.dev2.dist-info/METADATA,sha256=1nsSX_VKvu5SkHpIuXNFyBudwMZRwU_1mF6AuDaTFhc,3769
|
|
230
|
+
datajunction_server-0.0.2.dev2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
231
|
+
datajunction_server-0.0.2.dev2.dist-info/entry_points.txt,sha256=MOInJGdcQ10bDEl-XW4UMokEgx-ypINqBhObeDI8KiQ,74
|
|
232
|
+
datajunction_server-0.0.2.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|