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

Local dask client interferes with pyspark #1

Open
samlamont opened this issue Oct 15, 2024 · 1 comment
Open

Local dask client interferes with pyspark #1

samlamont opened this issue Oct 15, 2024 · 1 comment

Comments

@samlamont
Copy link
Collaborator

Somehow just starting a local dask client via

from dask.distributed import Client

client = Client()

interferes with pyspark, seems like just in the USGS and NWM fetching. Probably in the _get_secondary_location_ids() function

        lcw_df = self.ev.location_crosswalks.query(
            filters={
                "column": "secondary_location_id",
                "operator": "like",
                "value": f"{prefix}-%"
            }
        ).to_pandas()

where nothing gets returned by the query and the missing table error is raised. If we do not initialize the client, it works fine.

@samlamont
Copy link
Collaborator Author

However, it seems to work fine on TEEHR-Hub v0.4-beta either way

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

No branches or pull requests

1 participant