This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def convert_type_b_to_type_a(type_b_file, type_a_file): | |
with open(type_b_file, 'r') as file: | |
type_b_data = json.load(file) | |
# Extract schema | |
schema = type_b_data['schema'] | |
# Extract shapes and convert to records |