From 0d15f2c8f7330f778b2d5812e9bc3aef6d2b3609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:36:28 -0600 Subject: [PATCH] fix: The generated stream schema is now cached (#262) --- tap_google_analytics/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tap_google_analytics/client.py b/tap_google_analytics/client.py index e6775d0..db3821b 100644 --- a/tap_google_analytics/client.py +++ b/tap_google_analytics/client.py @@ -3,6 +3,7 @@ from __future__ import annotations import copy +import functools import sys import typing as t from datetime import date, datetime, timedelta, timezone @@ -296,7 +297,7 @@ def get_records(self, context: Context | None) -> t.Iterable[dict[str, t.Any]]: """ yield from self._request_records(context) - @property + @functools.cached_property def schema(self) -> dict: """Return dictionary of record schema.