Skip to content

Fix: remove accidental pyspark dependency added in ruff refactor#2587

Merged
georgesittas merged 1 commit intomainfrom
jo/remove_accidental_pyspark_dependency
May 9, 2024
Merged

Fix: remove accidental pyspark dependency added in ruff refactor#2587
georgesittas merged 1 commit intomainfrom
jo/remove_accidental_pyspark_dependency

Conversation

@georgesittas
Copy link
Contributor

@georgesittas georgesittas commented May 8, 2024

#2584 accidentally added pyspark as a dependency. This PR removes the dependency again and refactors the branch that instance-checked the df against pyspark.sql.dataframe.DataFrame, so that there's no need to import pyspark in order to reference this type. It's achieved by ensuring query_or_df's type doesn't match any other type in the QueryOrDF union, so we can conclude that it's a pyspark dataframe.

@georgesittas georgesittas requested review from izeigerman and tobymao May 8, 2024 23:44
@georgesittas georgesittas force-pushed the jo/remove_accidental_pyspark_dependency branch from d5bf488 to d013e29 Compare May 8, 2024 23:44
@georgesittas georgesittas force-pushed the jo/remove_accidental_pyspark_dependency branch from d013e29 to 136b1d8 Compare May 8, 2024 23:54
@georgesittas georgesittas force-pushed the jo/remove_accidental_pyspark_dependency branch from 136b1d8 to 0584aba Compare May 9, 2024 17:52
@georgesittas georgesittas merged commit b0f84dd into main May 9, 2024
@georgesittas georgesittas deleted the jo/remove_accidental_pyspark_dependency branch May 9, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants