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

Accessing dataframe name in custom sampler by sample-context #2039

Open
Parseval123 opened this issue Mar 19, 2024 · 3 comments
Open

Accessing dataframe name in custom sampler by sample-context #2039

Parseval123 opened this issue Mar 19, 2024 · 3 comments

Comments

@Parseval123
Copy link

Hi,
I'm using soda-spark-df, I would like to access dataframe name (created as temporary view in spark), but checking out the sampler object I didn't find any way to do that. I can get rows and schema, but no name. Is there a way to obtain the name of the df?

Thx in advance.

@tools-soda
Copy link

SAS-3085

@m1n0
Copy link
Contributor

m1n0 commented Mar 21, 2024

Hi! We indeed do not store the dataset name in the sample. Would you be open for a contribution? This should be fairly simple, just push the dataset name into the DbSample object here

@m1n0
Copy link
Contributor

m1n0 commented Apr 30, 2024

Hi @Parseval123 , would you be open to contributing a PR for this?

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

3 participants