Skip to main content
The log_file_schema_dataset_links table is designed to establish and manage relationships between log file schemas and datasets. This table plays a crucial role in the system by facilitating the mapping of structured data schemas to various datasets, enabling flexible and versioned data integration.

Table Structure

The log_file_schema_dataset_links table is structured to maintain the connections between schemas and datasets while providing additional metadata. Here’s a detailed breakdown of its columns:

Usage and Functionality

The log_file_schema_dataset_links table is designed to be flexible and support versioned schema-to-dataset mappings. Here are some key points about its usage:
  1. Schema-Dataset Association: The table allows for many-to-many relationships between schemas and datasets, enabling reuse of schemas across multiple datasets and vice versa.
  2. Versioning Support: The schema_revision column facilitates schema versioning, allowing the system to maintain multiple versions of schema-dataset mappings over time.
  3. Active Link Management: The is_active column provides a mechanism to enable or disable specific schema-dataset links without deleting them, offering flexibility in managing data integrations.
  4. Data Mapping: The path_key column stores a JSON representation of the mapping between schema elements and dataset fields, allowing for complex and nested data structures.

Notes

  • Example usage in TypeScript:
  • The table works in conjunction with the log_file_schemas table, which stores the actual schema definitions, including sample file data and metadata.
By leveraging the log_file_schema_dataset_links table, the Serial application can maintain a flexible and versioned mapping between data schemas and datasets, enabling robust data integration capabilities and supporting complex data processing workflows across different components of the system.