mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-08 16:38:04 +00:00
Sample Usage modified as per Model (#889)
* Sample Usage modified as per Model * Resolved - Named Parameters
This commit is contained in:
parent
27838b11cb
commit
7bf6de0b40
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user