Skip to content

Commit

Permalink
Fix typos (#357)
Browse files Browse the repository at this point in the history
* Fix typos

* Fix merge conflict
  • Loading branch information
roykoand authored Jul 29, 2024
1 parent ee32b10 commit aa4e79f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ $ datacontract export --format html datacontract.yaml > datacontract.html
# import avro (other formats: sql, glue, bigquery...)
$ datacontract import --format avro --source avro_schema.avsc

# find differences between to data contracts
# find differences between two data contracts
$ datacontract diff datacontract-v1.yaml datacontract-v2.yaml

# find differences between to data contracts categorized into error, warning, and info.
# find differences between two data contracts categorized into error, warning, and info.
$ datacontract changelog datacontract-v1.yaml datacontract-v2.yaml

# fail pipeline on breaking changes. Uses changelog internally and showing only error and warning.
Expand Down Expand Up @@ -308,7 +308,7 @@ Supported server types:
- [sqlserver](#sqlserver)
- [databricks](#databricks)
- [databricks (programmatic)](#databricks-programmatic)
- [dataframr (programmatic)](#dataframe-programmatic)
- [dataframe (programmatic)](#dataframe-programmatic)
- [snowflake](#snowflake)
- [kafka](#kafka)
- [postgres](#postgres)
Expand Down Expand Up @@ -1273,7 +1273,7 @@ if __name__ == "__main__":
data_contract = DataContract(
data_contract_file="/path/datacontract.yaml"
)
# call export
# Call export
result = data_contract.export(
export_format="custom", model="orders", server="production", custom_arg="my_custom_arg"
)
Expand Down Expand Up @@ -1340,7 +1340,7 @@ importer_factory.register_importer("custom_company_importer", CustomImporter)
if __name__ == "__main__":
# get a custom data from other app
# Get a custom data from other app
json_from_custom_app = '''
{
"id_custom": "uuid-custom",
Expand Down Expand Up @@ -1370,7 +1370,7 @@ if __name__ == "__main__":
# Create a DataContract instance
data_contract = DataContract()
# call import_from
# Call import_from_source
result = data_contract.import_from_source(
format="custom_company_importer",
data_contract_specification=DataContract.init(),
Expand Down
2 changes: 1 addition & 1 deletion datacontract/export/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ExportFormat(str, Enum):
spark = "spark"

@classmethod
def get_suported_formats(cls):
def get_supported_formats(cls):
return list(map(lambda c: c.value, cls))


Expand Down
2 changes: 1 addition & 1 deletion datacontract/imports/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ class ImportFormat(str, Enum):
spark = "spark"

@classmethod
def get_suported_formats(cls):
def get_supported_formats(cls):
return list(map(lambda c: c.value, cls))

0 comments on commit aa4e79f

Please sign in to comment.