mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 18:48:35 +00:00 
			
		
		
		
	
		
			
	
	
		
			8 lines
		
	
	
		
			293 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			8 lines
		
	
	
		
			293 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
|   | UPDATE test_definition
 | ||
|  | SET json = JSON_ARRAY_INSERT(
 | ||
|  |     json,
 | ||
|  |     CONCAT('$.supportedDataTypes[', JSON_LENGTH(json, '$.supportedDataTypes'), ']'),
 | ||
|  |     'NUMERIC'
 | ||
|  | )
 | ||
|  | WHERE JSON_CONTAINS(json->'$.supportedDataTypes', '"NUMBER"')
 | ||
|  |   AND NOT JSON_CONTAINS(json->'$.supportedDataTypes', '"NUMERIC"');
 |