Sample Usage modified as per Model (#889)

* Sample Usage modified as per Model

* Resolved - Named Parameters
This commit is contained in:
Ayush Shah 2021-10-22 20:41:57 +05:30 committed by GitHub
parent 27838b11cb
commit 7bf6de0b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,18 +48,14 @@ class SampleUsageSource(Source):
def next_record(self) -> Iterable[TableQuery]:
for row in self.query_logs:
tq = TableQuery(
row["query"],
"",
100,
0,
0,
"",
"",
datetime.today().strftime("%Y-%m-%d %H:%M:%S"),
100,
"shopify",
False,
row["query"],
query=row["query"],
user_name="",
starttime="",
endtime="",
analysis_date=datetime.today().strftime("%Y-%m-%d %H:%M:%S"),
database="shopify",
aborted=False,
sql=row["query"],
)
yield tq