findly.unified-reporting-sdk 0.6.18__py3-none-any.whl → 0.6.20__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.
@@ -25,6 +25,28 @@ def parse_where_columns_from_sql_query(
25
25
  dialect: str,
26
26
  where_clause_str: Optional[str] = None,
27
27
  ) -> Optional[List[WhereClauseInformation]]:
28
+ # Check if where_clause_str is effectively empty
29
+ if where_clause_str is None or not where_clause_str.strip():
30
+ LOGGER.info(
31
+ {
32
+ "msg": "empty_or_missing_where_clause",
33
+ "where_clause": where_clause_str,
34
+ "sql_query": sql_query,
35
+ }
36
+ )
37
+ return None
38
+
39
+ # Check: Verify if the where_clause_str contains only 'where' with no conditions
40
+ if where_clause_str.strip().lower() == "where":
41
+ LOGGER.info(
42
+ {
43
+ "msg": "where_clause_contains_no_conditions",
44
+ "where_clause": where_clause_str,
45
+ "sql_query": sql_query,
46
+ }
47
+ )
48
+ return None
49
+
28
50
  try:
29
51
  where_clause_maybe: Optional[Expression] = parse_one(
30
52
  sql=sql_query,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: findly.unified-reporting-sdk
3
- Version: 0.6.18
3
+ Version: 0.6.20
4
4
  Summary:
5
5
  License: GPL-3.0-only
6
6
  Requires-Python: >=3.9,<4.0
@@ -5,7 +5,7 @@ findly/unified_reporting_sdk/data_sources/common/__init__.py,sha256=47DEQpj8HBSa
5
5
  findly/unified_reporting_sdk/data_sources/common/common_parser.py,sha256=OymaK3T9U10ZiIpMqwYQv3ukvCmBu9ALgxS5zQmKpLY,7897
6
6
  findly/unified_reporting_sdk/data_sources/common/date_range_helper.py,sha256=z2L1YU1Mzbybkl1wZK_mXL9lKFfG6CEomvlTfADD_80,971
7
7
  findly/unified_reporting_sdk/data_sources/common/reports_client.py,sha256=fCza94iwZz05QPr6B3mmsrvQQdymgD3CzMbvAYEOetw,3647
8
- findly/unified_reporting_sdk/data_sources/common/where_string_comparison.py,sha256=pNgAgMOju4j8ZelW-zucLrQO8YENg46EJXc2TkjHL4s,5695
8
+ findly/unified_reporting_sdk/data_sources/common/where_string_comparison.py,sha256=vQWxmX2T6-_PRIFBqfW18-5xLWdDICG2iM4TP04RZSY,6408
9
9
  findly/unified_reporting_sdk/data_sources/fb_ads/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  findly/unified_reporting_sdk/data_sources/fb_ads/fb_ads_client.py,sha256=hVrxsbf0DLoTka5B7DACBbcMeVEh4PRU_s8WZ8nlvFY,21913
11
11
  findly/unified_reporting_sdk/data_sources/fb_ads/fb_ads_query_args_parser.py,sha256=kM1ewN1bQqL_hTfbItkPGJenbwYeEpUXZEYnoTjTbDo,31949
@@ -28,7 +28,7 @@ findly/unified_reporting_sdk/protos/findly_semantic_layer_pb2.pyi,sha256=PmMDYAW
28
28
  findly/unified_reporting_sdk/urs.py,sha256=8um_pLJNOu1FGd0IO7XlNBIFAvGYD2nXnxiHMjkraKs,2915
29
29
  findly/unified_reporting_sdk/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  findly/unified_reporting_sdk/util/create_numeric_string_series.py,sha256=MmufpYatIhcVxA9e3H1dR1CrejXRnA8j4NNjJxfvBVA,457
31
- findly_unified_reporting_sdk-0.6.18.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
32
- findly_unified_reporting_sdk-0.6.18.dist-info/METADATA,sha256=wHRpVz7iGVWTEHoEJpPQO05_N1r_WU8eoRv72omddwQ,3160
33
- findly_unified_reporting_sdk-0.6.18.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
- findly_unified_reporting_sdk-0.6.18.dist-info/RECORD,,
31
+ findly_unified_reporting_sdk-0.6.20.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
32
+ findly_unified_reporting_sdk-0.6.20.dist-info/METADATA,sha256=JL01Y3tesvOCdxLS-f_bQyhe9rHnlAPsNmrrxSi66uM,3160
33
+ findly_unified_reporting_sdk-0.6.20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
+ findly_unified_reporting_sdk-0.6.20.dist-info/RECORD,,