what is the normalization for json sources (like mongodb) to a relational database #341
Answered
by
flarco
axellpadilla
asked this question in
Q&A
-
Hi and thanks ahead, searched for it, but couldn't find an answer to what sling does for column names and arrays on json objects, will it normalize and create extra tables if needed? will it clean names of columns? |
Beta Was this translation helpful? Give feedback.
Answered by
flarco
Jul 27, 2024
Replies: 1 comment 4 replies
-
Hi, by default it keeps the JSON as source, and does not flatten. If you set the |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
axellpadilla
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, by default it keeps the JSON as source, and does not flatten. If you set the
source_options.flatten
=true
, then object keys will become their own columns (type inferred), and arrays will stay as it (as a JSON type column). Sling will not unnest.