mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 02:29:03 +00:00 
			
		
		
		
	 0796c6274b
			
		
	
	
		0796c6274b
		
			
		
	
	
	
	
		
			
			* fix: made databricks httpPath required and added a migration file for the same * fix: added sql migration in postDataMigration file and fix databricks tests * fix: added httpPath in test_source_connection.py and test_source_parsing.py files * fix: added httpPath in test_databricks_lineage.py * fix: table name in postgres migration
		
			
				
	
	
		
			23 lines
		
	
	
		
			665 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			665 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| UPDATE test_case
 | |
| SET json = json || jsonb_build_object('createdBy', json->>'updatedBy')
 | |
| WHERE json->>'createdBy' IS NULL;
 | |
| 
 | |
| -- Made httpPath a required field for Databricks, updating records 
 | |
| -- where httpPath is NULL or missing to an empty string.  
 | |
| UPDATE
 | |
|     dbservice_entity
 | |
| SET
 | |
|     json = jsonb_set(
 | |
|         json,
 | |
|         '{connection,config,httpPath}',
 | |
|         '""' :: jsonb,
 | |
|         true
 | |
|     )
 | |
| WHERE
 | |
|     serviceType = 'Databricks'
 | |
|     AND (
 | |
|         NOT jsonb_path_exists(json, '$.connection.config.httpPath')
 | |
|         OR (json -> 'connection' -> 'config' ->> 'httpPath') IS NULL
 | |
|         OR (json -> 'connection' -> 'config' ->> 'httpPath') = 'null'
 | |
|     );
 | |
|      |