Skip to main content
Version: devel

dlt.common.normalizers.json.relational

DataItemNormalizer Objects​

class DataItemNormalizer(DataItemNormalizerBase[RelationalNormalizerConfig])

View source on GitHub

C_DLT_ROOT_ID​

unique id of top level parent

C_DLT_PARENT_ID​

unique id of parent row

C_DLT_LIST_IDX​

position in the list of rows

C_VALUE​

for lists of simple types

EMPTY_KEY_IDENTIFIER​

replace empty keys with this

__init__​

def __init__(schema: Schema) -> None

View source on GitHub

This item normalizer works with nested dictionaries. It flattens dictionaries and descends into lists. It yields row dictionaries at each nesting level.

extend_schema​

def extend_schema(extend_tables: bool = True) -> None

View source on GitHub

Extends Schema with normalizer-specific hints and settings.

This method is called by Schema when instance is created or restored from storage.

extend_table​

def extend_table(table_name: str) -> None

View source on GitHub

If the table has a merge write disposition, add propagation info to normalizer

Called by Schema when new table is added to schema or table is updated with partial table. Table name should be normalized.

remove_table​

def remove_table(table_name: str) -> None

View source on GitHub

Called by the Schema when table is removed from it.

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.