pydpm_xl 0.1.39rc29__py3-none-any.whl → 0.1.39rc30__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.
@@ -360,13 +360,26 @@ class ASTToJSONVisitor(NodeVisitor):
360
360
  'class_name': 'AggregationOp',
361
361
  'op': node.op,
362
362
  'operand': self.visit(node.operand),
363
- 'grouping_clause': None
364
363
  }
365
- # Add grouping_clause if present
364
+ # Add grouping_clause if present and has actual components
366
365
  if hasattr(node, 'grouping_clause') and node.grouping_clause is not None:
367
- result['grouping_clause'] = self.visit(node.grouping_clause)
366
+ gc = self.visit(node.grouping_clause)
367
+ # Only include grouping_clause if it has components
368
+ if gc and gc.get('components'):
369
+ result['grouping_clause'] = gc
368
370
  return result
369
371
 
372
+ def visit_GroupingClause(self, node):
373
+ """Visit GroupingClause nodes."""
374
+ components = getattr(node, 'components', None)
375
+ if components:
376
+ return {
377
+ 'class_name': 'GroupingClause',
378
+ 'components': components
379
+ }
380
+ # Return None for empty grouping clauses (will be filtered out)
381
+ return None
382
+
370
383
  def visit_ComplexNumericOp(self, node):
371
384
  """Visit ComplexNumericOp nodes (max, min)."""
372
385
  return {
py_dpm/__init__.py CHANGED
@@ -41,7 +41,7 @@ Available packages:
41
41
  - pydpm.api: Main APIs for migration, syntax, and semantic analysis
42
42
  """
43
43
 
44
- __version__ = "0.1.39rc29"
44
+ __version__ = "0.1.39rc30"
45
45
  __author__ = "MeaningfulData S.L."
46
46
  __email__ = "info@meaningfuldata.eu"
47
47
  __license__ = "GPL-3.0-or-later"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydpm_xl
3
- Version: 0.1.39rc29
3
+ Version: 0.1.39rc30
4
4
  Summary: Python library for DPM-XL data processing and analysis
5
5
  Author-email: "MeaningfulData S.L." <info@meaningfuldata.eu>
6
6
  License: GPL-3.0-or-later
@@ -1,4 +1,4 @@
1
- py_dpm/__init__.py,sha256=mHCg5ux9mRv69Wp72Tulb994Kb5PQhpr_TS_pl8WMwU,1863
1
+ py_dpm/__init__.py,sha256=ophaBibSnhDn2gaUqmlvNd1Y0zjBL1VysBuCJCF0U9o,1863
2
2
  py_dpm/client.py,sha256=DspAS6lVLh62nLlyOy4UEBy00GLR0bb9Wbd6hOZ6bHY,19491
3
3
  py_dpm/data_handlers.py,sha256=_aJqkyflJr1oNsOQ24nB9yzfrpxu28NPrpoil2aAm58,4395
4
4
  py_dpm/db_utils.py,sha256=f0da6FT7HusGpLfGen4fceSvcojW4bzrp5sucgt6XVQ,7822
@@ -35,7 +35,7 @@ py_dpm/Operators/TimeOperators.py,sha256=klcFIYFonGVRNhr66Ipu1lwOr9CxzDGIbA3QQLm
35
35
  py_dpm/Operators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  py_dpm/Utils/ValidationsGenerationUtils.py,sha256=1yINJ_ANqr9BbIDdPm4WxRG2EQu0yaRICikYG1nIhzs,22652
37
37
  py_dpm/Utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- py_dpm/Utils/ast_serialization.py,sha256=ldCTenu-BMIccOzhSYtKupmEVzjWdXSAr-XUWfwNT9A,31961
38
+ py_dpm/Utils/ast_serialization.py,sha256=c23qwwGtjDJgOxoOo41g4p7CYdbkVPz3q_Q6KssMSIU,32462
39
39
  py_dpm/Utils/operands_mapping.py,sha256=CDWvoKxh-nBcEKMxrUmMnaCveE8dExjeuFUa-lgK8Rg,2239
40
40
  py_dpm/Utils/operator_mapping.py,sha256=SK8utWaUaQJybSmErkF_2blzUIgiVOUNGFozIk7dBg8,1926
41
41
  py_dpm/Utils/tokens.py,sha256=VRIrPDi5ttwgH-on5Qt4-l4ho4bLA755-nfTalponcA,3496
@@ -88,9 +88,9 @@ py_dpm/views/precondition_info.sql,sha256=l24U8c6NtwFcUDFwb2FqH9h0xgpoi9WbvsKUgJ
88
88
  py_dpm/views/report_type_operand_reference_info.sql,sha256=_lBK9HQILk9yLD7cW9Ieud-vfTc-KQiU3WGAnN6LuNY,977
89
89
  py_dpm/views/subcategory_info.sql,sha256=V8UZiGjicmOWfBEHX2v6ktSMR4r_f1YiGD_LeN9Gn6o,812
90
90
  py_dpm/views/table_info.sql,sha256=htRXIVJya44CZAqjO5sVaJJwiQBQ30oiLFFu5DiBpR4,793
91
- pydpm_xl-0.1.39rc29.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
92
- pydpm_xl-0.1.39rc29.dist-info/METADATA,sha256=_KHZGTtkz50qVANC29LNEe63THXegD9lnUkfCWYkZWE,1592
93
- pydpm_xl-0.1.39rc29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
94
- pydpm_xl-0.1.39rc29.dist-info/entry_points.txt,sha256=W9j5xCzgvdfzOKSfEpkk2jSRhEcpmXZUVMwHrsEFAbY,45
95
- pydpm_xl-0.1.39rc29.dist-info/top_level.txt,sha256=495PvWZRoKl2NvbQU25W7dqWIBHqY-mFMPt83uxPpcM,7
96
- pydpm_xl-0.1.39rc29.dist-info/RECORD,,
91
+ pydpm_xl-0.1.39rc30.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
92
+ pydpm_xl-0.1.39rc30.dist-info/METADATA,sha256=KkNEQ13kxS-D9ckPyeZDq3u69Nymblt8BgHbGmXurd0,1592
93
+ pydpm_xl-0.1.39rc30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
94
+ pydpm_xl-0.1.39rc30.dist-info/entry_points.txt,sha256=W9j5xCzgvdfzOKSfEpkk2jSRhEcpmXZUVMwHrsEFAbY,45
95
+ pydpm_xl-0.1.39rc30.dist-info/top_level.txt,sha256=495PvWZRoKl2NvbQU25W7dqWIBHqY-mFMPt83uxPpcM,7
96
+ pydpm_xl-0.1.39rc30.dist-info/RECORD,,