Skip to content

Commit

Permalink
Relax restrictions to allow low py versions
Browse files Browse the repository at this point in the history
 On branch feature/fix-tests
 Changes to be committed:
	modified:   poetry.lock
	modified:   pyproject.toml
	modified:   quinn/transformations.py
  • Loading branch information
SemyonSinchenko committed Nov 18, 2023
1 parent a547343 commit a2dd591
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 19 deletions.
72 changes: 56 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ pytest-describe = "^2"

[tool.poetry.group.linting.dependencies]
ruff = "^0.0.291"
typing-extensions = {version = "^4.8.0", python = ">=3.8,<4.0"}
typing-extensions = {version = "^4", python = ">=3.6,<4.0"}

[tool.poetry.group.docs.dependencies]
mkdocstrings-python = "^0.8.3"
mkdocs-gen-files = "^0.4.0"
mkdocs-literate-nav = "^0.6.0"
mkdocs-section-index = "^0.3.5"
markdown-include = "^0.8.1"
mkdocs = "^1.4.2"
mkdocs = "^1"

###########################################################################
# LINTING CONFIGURATION
Expand Down
2 changes: 1 addition & 1 deletion quinn/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def fix_nullability(field: StructField, result_dict: dict) -> None:
if spark is None:
spark = SparkSession.builder.getOrCreate()

return spark.sparkSession.createDataFrame(output.rdd, output.schema)
return spark.createDataFrame(output.rdd, output.schema)


def flatten_struct(df: DataFrame, col_name: str, separator: str = ":") -> DataFrame:
Expand Down

0 comments on commit a2dd591

Please sign in to comment.