mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 04:29:13 +00:00 
			
		
		
		
	
							parent
							
								
									3e83bdac3d
								
							
						
					
					
						commit
						c31bb98e64
					
				@ -252,7 +252,9 @@ class BigquerySource(
 | 
				
			|||||||
            test_connection_fn(
 | 
					            test_connection_fn(
 | 
				
			||||||
                self.metadata, inspector_details.engine, self.service_connection
 | 
					                self.metadata, inspector_details.engine, self.service_connection
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            if os.environ[GOOGLE_CREDENTIALS]:
 | 
					            # GOOGLE_CREDENTIALS may not have been set,
 | 
				
			||||||
 | 
					            # to avoid key error, we use `get` for dict
 | 
				
			||||||
 | 
					            if os.environ.get(GOOGLE_CREDENTIALS):
 | 
				
			||||||
                self.temp_credentials_file_path.append(os.environ[GOOGLE_CREDENTIALS])
 | 
					                self.temp_credentials_file_path.append(os.environ[GOOGLE_CREDENTIALS])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def query_table_names_and_types(
 | 
					    def query_table_names_and_types(
 | 
				
			||||||
@ -443,7 +445,8 @@ class BigquerySource(
 | 
				
			|||||||
        inspector_details = get_inspector_details(
 | 
					        inspector_details = get_inspector_details(
 | 
				
			||||||
            database_name=database_name, service_connection=self.service_connection
 | 
					            database_name=database_name, service_connection=self.service_connection
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        self.temp_credentials_file_path.append(os.environ[GOOGLE_CREDENTIALS])
 | 
					        if os.environ.get(GOOGLE_CREDENTIALS):
 | 
				
			||||||
 | 
					            self.temp_credentials_file_path.append(os.environ[GOOGLE_CREDENTIALS])
 | 
				
			||||||
        self.client = inspector_details.client
 | 
					        self.client = inspector_details.client
 | 
				
			||||||
        self.engine = inspector_details.engine
 | 
					        self.engine = inspector_details.engine
 | 
				
			||||||
        self.inspector = inspector_details.inspector
 | 
					        self.inspector = inspector_details.inspector
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user