mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 02:29:03 +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]: |     def next_record(self) -> Iterable[TableQuery]: | ||||||
|         for row in self.query_logs: |         for row in self.query_logs: | ||||||
|             tq = TableQuery( |             tq = TableQuery( | ||||||
|                 row["query"], |                 query=row["query"], | ||||||
|                 "", |                 user_name="", | ||||||
|                 100, |                 starttime="", | ||||||
|                 0, |                 endtime="", | ||||||
|                 0, |                 analysis_date=datetime.today().strftime("%Y-%m-%d %H:%M:%S"), | ||||||
|                 "", |                 database="shopify", | ||||||
|                 "", |                 aborted=False, | ||||||
|                 datetime.today().strftime("%Y-%m-%d %H:%M:%S"), |                 sql=row["query"], | ||||||
|                 100, |  | ||||||
|                 "shopify", |  | ||||||
|                 False, |  | ||||||
|                 row["query"], |  | ||||||
|             ) |             ) | ||||||
|             yield tq |             yield tq | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ayush Shah
						Ayush Shah