soda-core icon indicating copy to clipboard operation
soda-core copied to clipboard

Accessing dataframe name in custom sampler by sample-context

Open Parseval123 opened this issue 1 year ago • 3 comments

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.

Parseval123 avatar Mar 19 '24 13:03 Parseval123

SAS-3085

tools-soda avatar Mar 19 '24 13:03 tools-soda

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 avatar Mar 21 '24 16:03 m1n0

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

m1n0 avatar Apr 30 '24 23:04 m1n0