Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix flaky 'read_meta' test #619

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/datachain/lib/meta_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def process_json(data_string, jmespath):
# Print a dynamic datamodel-codegen output from JSON or CSV on stdout
def read_schema(source_file, data_type="csv", expr=None, model_name=None):
data_string = ""
# using uiid to get around issue #1617
# using uuid to get around issue #1617
if not model_name:
# comply with Python class names
uid_str = str(generate_uuid()).replace("-", "")
Expand Down Expand Up @@ -85,7 +85,8 @@ def read_schema(source_file, data_type="csv", expr=None, model_name=None):
DataModel.register({model_name})
spec = {model_name}
"""
return output.read_text() + epilogue
schema = output.read_text() + epilogue
return schema


#
Expand Down
Loading