A TFX ImportSchemaGen component to import a schema file into the pipeline.
ImportSchemaGen is a specialized SchemaGen which imports a pre-defined schema file into the pipeline.
In a typical TFX pipeline, users are expected to review the schemas generated
SchemaGen and store them in SCM or equivalent. Those schema files can
be brought back to pipelines using ImportSchemaGen.
Here is an example to use the ImportSchemaGen:
schema_gen = ImportSchemaGen(schema_file=schema_path)
schema: Channel of type
standard_artifacts.Schemafor schema result.
See the SchemaGen guide for more details.
ImportSchemaGen works almost similar to
Importer except following:
schema_fileshould be the full file path instead of directory holding it.
schema_fileis copied to the output artifact. This is different from
Importerthat loads an "Artifact" by setting its URI to the given path.
|File path to the input schema file. This file will be copied to the output artifact which is generated inside the pipeline root directory.
|Component's output channel dict.