Skip to content

Commit

Permalink
add list projects timer details
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurinehate committed Jul 26, 2024
1 parent 9e1b62b commit 6dcd898
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from dataclasses import dataclass
from dataclasses import dataclass, field
from typing import Iterable, Optional

from pydantic import Field
Expand Down Expand Up @@ -35,6 +35,9 @@
class BigQueryQueriesSourceReport(SourceReport):
window: Optional[BaseTimeWindowConfig] = None
queries_extractor: Optional[BigQueryQueriesExtractorReport] = None
schema_api_perf: BigQuerySchemaApiPerfReport = field(
default_factory=BigQuerySchemaApiPerfReport
)


class BigQueryQueriesSourceConfig(
Expand All @@ -58,9 +61,7 @@ def __init__(self, ctx: PipelineContext, config: BigQueryQueriesSourceConfig):

self.queries_extractor = BigQueryQueriesExtractor(
connection=self.connection,
schema_api=BigQuerySchemaApi(
BigQuerySchemaApiPerfReport(), self.connection
),
schema_api=BigQuerySchemaApi(self.report.schema_api_perf, self.connection),
config=self.config,
structured_report=self.report,
filters=self.filters,
Expand Down

0 comments on commit 6dcd898

Please sign in to comment.