airbyte-source-google-ads 4.1.1__py3-none-any.whl → 4.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-source-google-ads
3
- Version: 4.1.1
3
+ Version: 4.1.2
4
4
  Summary: Source implementation for Google Ads.
5
5
  Home-page: https://airbyte.com
6
6
  License: Elv2
@@ -1,5 +1,5 @@
1
1
  source_google_ads/__init__.py,sha256=Nlo5H6LlaSgg7tx_LyqMIy3MXiAagfk3izZ9o44VvSE,1201
2
- source_google_ads/components.py,sha256=8Vbomr6tbkF12lZh2ocTLWbtxB0ajrO143qYkpSFgQ4,40831
2
+ source_google_ads/components.py,sha256=_Jku4_NHRg4OzYSmtk23H0LfYo0bbqfx1navUoUztug,40970
3
3
  source_google_ads/config_migrations.py,sha256=oBi_qNqBpLS8GNCaIOBo0stNdYuyqVl6lkrhdXRwMX8,4405
4
4
  source_google_ads/google_ads.py,sha256=cxS18tz0fFJjmIhlhFQ3Zvu2K8bhDtmsl1kFeO7nNhk,11595
5
5
  source_google_ads/manifest.yaml,sha256=12ZHj08Fijt_4fktAvvkgRrcIZiE6CCaDO4_fYgMnTE,219177
@@ -11,7 +11,7 @@ source_google_ads/source.py,sha256=hz5ep6stMWHNvD73PIF_7bjnee49sY9YHHjaYNAPnOQ,1
11
11
  source_google_ads/spec.json,sha256=8hbc7smbaffIkYCkX2BYJLB9kgaH8vYKCg-H0y1FvUs,7810
12
12
  source_google_ads/streams.py,sha256=FB-DNJlXhjQADptT-wrv3iGWoliyRuvDuHGeqiN9HsY,13349
13
13
  source_google_ads/utils.py,sha256=-KpgGv2W8WueXvGRC3xbVreDl5-5-vU9OwzC5SZDKVc,21409
14
- airbyte_source_google_ads-4.1.1.dist-info/METADATA,sha256=1VEiA-Dj4Q0xFMw9LmRe9WqwwQkhBoQAG8J4A5UCOQA,5360
15
- airbyte_source_google_ads-4.1.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
16
- airbyte_source_google_ads-4.1.1.dist-info/entry_points.txt,sha256=pP4Llir93XGkHFDZfXXxK7qOWo9_U1ssCJToyxEUB4w,63
17
- airbyte_source_google_ads-4.1.1.dist-info/RECORD,,
14
+ airbyte_source_google_ads-4.1.2.dist-info/METADATA,sha256=-fLSLCxinQ9yOvvO48WdLRh7gJVDHnxqP3aNZV1lTEk,5360
15
+ airbyte_source_google_ads-4.1.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
16
+ airbyte_source_google_ads-4.1.2.dist-info/entry_points.txt,sha256=pP4Llir93XGkHFDZfXXxK7qOWo9_U1ssCJToyxEUB4w,63
17
+ airbyte_source_google_ads-4.1.2.dist-info/RECORD,,
@@ -840,7 +840,10 @@ class CustomGAQuerySchemaLoader(SchemaLoader):
840
840
  """
841
841
  query_upper = self.query.upper()
842
842
  select_index = query_upper.find("SELECT")
843
- from_index = query_upper.find("FROM")
843
+ match = re.search(r"\bFROM\b", query_upper)
844
+ if not match:
845
+ raise ValueError("Could not find a valid FROM clause in query")
846
+ from_index = match.start()
844
847
 
845
848
  fields_portion = self.query[select_index + 6 : from_index].strip()
846
849