<#3004 fix(targets): Ensure fields with an array o...
# meltano-repo-activity
g
#3004 fix(targets): Ensure fields with an array of JSON schema types are properly handled by SQL targets Pull request opened by edgarrmondragon …operly handled by SQL targets ## Summary by Sourcery Fix SQL type mapping for JSON schemas defining multiple types for a field. Bug Fixes: • Ensure the result of the
handle_multiple_types
method is returned when mapping JSON schema types to SQL, correctly handling cases like
type: ["object", "null"]
or
anyOf
definitions. Tests: • Add tests to verify correct SQL type mapping (e.g., to JSON) for fields with
anyOf
or an array of types specified in the JSON schema. • Rename
test_complex
to
test_multiple_types
for clarity. meltano/sdk