pytrilogy 0.0.3.40__py3-none-any.whl → 0.0.3.41__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.
Potentially problematic release.
This version of pytrilogy might be problematic. Click here for more details.
- {pytrilogy-0.0.3.40.dist-info → pytrilogy-0.0.3.41.dist-info}/METADATA +1 -1
- {pytrilogy-0.0.3.40.dist-info → pytrilogy-0.0.3.41.dist-info}/RECORD +9 -9
- trilogy/__init__.py +1 -1
- trilogy/core/environment_helpers.py +3 -5
- trilogy/core/models/build.py +3 -2
- {pytrilogy-0.0.3.40.dist-info → pytrilogy-0.0.3.41.dist-info}/WHEEL +0 -0
- {pytrilogy-0.0.3.40.dist-info → pytrilogy-0.0.3.41.dist-info}/entry_points.txt +0 -0
- {pytrilogy-0.0.3.40.dist-info → pytrilogy-0.0.3.41.dist-info}/licenses/LICENSE.md +0 -0
- {pytrilogy-0.0.3.40.dist-info → pytrilogy-0.0.3.41.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
pytrilogy-0.0.3.
|
|
2
|
-
trilogy/__init__.py,sha256=
|
|
1
|
+
pytrilogy-0.0.3.41.dist-info/licenses/LICENSE.md,sha256=5ZRvtTyCCFwz1THxDTjAu3Lidds9WjPvvzgVwPSYNDo,1042
|
|
2
|
+
trilogy/__init__.py,sha256=4qLdjNZwaaPUShk24aEi2JWuFTbRXxd502rsSHiH-tk,303
|
|
3
3
|
trilogy/compiler.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
trilogy/constants.py,sha256=5eQxk1A0pv-TQk3CCvgZCFA9_K-6nxrOm7E5Lxd7KIY,1652
|
|
5
5
|
trilogy/engine.py,sha256=OK2RuqCIUId6yZ5hfF8J1nxGP0AJqHRZiafcowmW0xc,1728
|
|
@@ -13,7 +13,7 @@ trilogy/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
13
13
|
trilogy/core/constants.py,sha256=7XaCpZn5mQmjTobbeBn56SzPWq9eMNDfzfsRU-fP0VE,171
|
|
14
14
|
trilogy/core/enums.py,sha256=JwbWyAHOC2xRTZe2SeEvlIGPvmC1KjcJ4uh1Po5USzQ,7380
|
|
15
15
|
trilogy/core/env_processor.py,sha256=pFsxnluKIusGKx1z7tTnfsd_xZcPy9pZDungkjkyvI0,3170
|
|
16
|
-
trilogy/core/environment_helpers.py,sha256=
|
|
16
|
+
trilogy/core/environment_helpers.py,sha256=UWtF5ZQqFyzHdrjUBEd7c2ZfASBhBWFoa9WkUHBbyHI,9700
|
|
17
17
|
trilogy/core/ergonomics.py,sha256=e-7gE29vPLFdg0_A1smQ7eOrUwKl5VYdxRSTddHweRA,1631
|
|
18
18
|
trilogy/core/exceptions.py,sha256=JPYyBcit3T_pRtlHdtKSeVJkIyWUTozW2aaut25A2xI,673
|
|
19
19
|
trilogy/core/functions.py,sha256=4fEOGgXWDvgrJtCg_5m2Y9iWnHfLbvLQ82RkIMl_1K0,27722
|
|
@@ -23,7 +23,7 @@ trilogy/core/optimization.py,sha256=aihzx4-2-mSjx5td1TDTYGvc7e9Zvy-_xEyhPqLS-Ig,
|
|
|
23
23
|
trilogy/core/query_processor.py,sha256=Vl-u0F0rbqI2liv82yJgiZCB255Kx_KiuzZVHL6aeTM,19459
|
|
24
24
|
trilogy/core/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
trilogy/core/models/author.py,sha256=hS1caD8y7XWRBlHfwgZOrBcz3TisDPba8joFaiEXxX0,77072
|
|
26
|
-
trilogy/core/models/build.py,sha256=
|
|
26
|
+
trilogy/core/models/build.py,sha256=Gz_1s3FZtLww6r8RdYi7MxVhOSMw-mlmUg_tDyqGGwE,61881
|
|
27
27
|
trilogy/core/models/build_environment.py,sha256=s_C9xAHuD3yZ26T15pWVBvoqvlp2LdZ8yjsv2_HdXLk,5363
|
|
28
28
|
trilogy/core/models/core.py,sha256=wx6hJcFECMG-Ij972ADNkr-3nFXkYESr82ObPiC46_U,10875
|
|
29
29
|
trilogy/core/models/datasource.py,sha256=6RjJUd2u4nYmEwFBpJlM9LbHVYDv8iHJxqiBMZqUrwI,9422
|
|
@@ -102,8 +102,8 @@ trilogy/std/display.preql,sha256=2BbhvqR4rcltyAbOXAUo7SZ_yGFYZgFnurglHMbjW2g,40
|
|
|
102
102
|
trilogy/std/geography.preql,sha256=-fqAGnBL6tR-UtT8DbSek3iMFg66ECR_B_41pODxv-k,504
|
|
103
103
|
trilogy/std/money.preql,sha256=ZHW-csTX-kYbOLmKSO-TcGGgQ-_DMrUXy0BjfuJSFxM,80
|
|
104
104
|
trilogy/std/report.preql,sha256=LbV-XlHdfw0jgnQ8pV7acG95xrd1-p65fVpiIc-S7W4,202
|
|
105
|
-
pytrilogy-0.0.3.
|
|
106
|
-
pytrilogy-0.0.3.
|
|
107
|
-
pytrilogy-0.0.3.
|
|
108
|
-
pytrilogy-0.0.3.
|
|
109
|
-
pytrilogy-0.0.3.
|
|
105
|
+
pytrilogy-0.0.3.41.dist-info/METADATA,sha256=_O9X1If80dWqTM9fIHAyEluLAvnwvoAfKN12e1YYUJM,9100
|
|
106
|
+
pytrilogy-0.0.3.41.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
107
|
+
pytrilogy-0.0.3.41.dist-info/entry_points.txt,sha256=ewBPU2vLnVexZVnB-NrVj-p3E-4vukg83Zk8A55Wp2w,56
|
|
108
|
+
pytrilogy-0.0.3.41.dist-info/top_level.txt,sha256=cAy__NW_eMAa_yT9UnUNlZLFfxcg6eimUAZ184cdNiE,8
|
|
109
|
+
pytrilogy-0.0.3.41.dist-info/RECORD,,
|
trilogy/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from trilogy.constants import DEFAULT_NAMESPACE
|
|
2
2
|
from trilogy.core.enums import ConceptSource, DatePart, FunctionType, Purpose
|
|
3
3
|
from trilogy.core.functions import AttrAccess
|
|
4
|
-
from trilogy.core.models.author import Concept, Function, Metadata, TraitDataType
|
|
4
|
+
from trilogy.core.models.author import Concept, Function, Grain, Metadata, TraitDataType
|
|
5
5
|
from trilogy.core.models.core import DataType, StructType, arg_to_datatype
|
|
6
6
|
from trilogy.core.models.environment import Environment
|
|
7
7
|
from trilogy.parsing.common import Meta
|
|
@@ -182,11 +182,9 @@ def generate_key_concepts(concept: Concept, environment: Environment):
|
|
|
182
182
|
datatype=DataType.INTEGER,
|
|
183
183
|
purpose=default_type,
|
|
184
184
|
lineage=const_function,
|
|
185
|
-
grain=
|
|
185
|
+
grain=Grain(),
|
|
186
186
|
namespace=concept.namespace,
|
|
187
|
-
keys=
|
|
188
|
-
concept.address,
|
|
189
|
-
},
|
|
187
|
+
keys=set(),
|
|
190
188
|
metadata=Metadata(
|
|
191
189
|
description=f"Auto-derived integer. The {ftype.value} of {concept.address}, {base_description}",
|
|
192
190
|
line_number=base_line_number,
|
trilogy/core/models/build.py
CHANGED
|
@@ -1697,6 +1697,7 @@ class Factory:
|
|
|
1697
1697
|
|
|
1698
1698
|
@build.register
|
|
1699
1699
|
def _(self, base: WhereClause) -> BuildWhereClause:
|
|
1700
|
+
|
|
1700
1701
|
return BuildWhereClause.model_construct(
|
|
1701
1702
|
conditional=self.build(base.conditional)
|
|
1702
1703
|
)
|
|
@@ -1756,14 +1757,14 @@ class Factory:
|
|
|
1756
1757
|
from trilogy.parsing.common import arbitrary_to_concept
|
|
1757
1758
|
|
|
1758
1759
|
left = base.left
|
|
1759
|
-
if isinstance(left, AggregateWrapper):
|
|
1760
|
+
if isinstance(left, (AggregateWrapper, WindowItem, FilterItem)):
|
|
1760
1761
|
left_c = arbitrary_to_concept(
|
|
1761
1762
|
left,
|
|
1762
1763
|
environment=self.environment,
|
|
1763
1764
|
)
|
|
1764
1765
|
left = left_c # type: ignore
|
|
1765
1766
|
right = base.right
|
|
1766
|
-
if isinstance(right, AggregateWrapper):
|
|
1767
|
+
if isinstance(right, (AggregateWrapper, WindowItem, FilterItem)):
|
|
1767
1768
|
right_c = arbitrary_to_concept(
|
|
1768
1769
|
right,
|
|
1769
1770
|
environment=self.environment,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|