SchemaGen failed to infer data domain

Hi,

I am trying to experiment the ExampleGen, StatisticsGen and SchemaGen pipeline on my own project.
In my data, there is a column that containing tower names such as “ABCDE”, and when I called SchemaGen, it was showing a “-” in the Domain field and the data type was shown as “BYTES” which should be “STRING”.

I used a very standard pipeline given in the labs of this course:

example_gen = CsvExampleGen(input_base=_data_root)
context.run(example_gen)
statistics_gen = StatisticsGen(
    examples=example_gen.outputs['examples'])
context.run(statistics_gen)
context.show(statistics_gen.outputs['statistics'])
schema_gen = SchemaGen(
      statistics=statistics_gen.outputs['statistics'], infer_feature_shape=True)
context.run(schema_gen)
context.show(schema_gen.outputs['schema'])

Does anyone know why SchemaGen failed to infer the schema?

Could you try again with the following dependencies?

tensorflow==2.8.2
tfx==1.8.0
apache-beam==2.39.0
tensorflow-transform==1.8.0

If things fail, please click my name and share your dataset via a link along with your notebook as a message to me.