brave-car-38294
04/06/2023, 9:55 PMartifacts are available of all the variables. What if I just want to know the paths for the artifacts, such s3, azure or Ali cloud path from which the data was read in any of the steps in the end step. Is that possible?straight-shampoo-11124
04/06/2023, 10:28 PMmetaflow.S3 so you get to control the serialization and location (optionally).
It's pretty straightforward:
with metaflow.S3(run=self) as s3:
url = s3.put('myobject', pickle.dumps(obj))
print('data available at', url)straight-shampoo-11124
04/06/2023, 10:29 PMpickle with any other serializer and/or use any other S3 location instead of the default run=self)brave-car-38294
04/07/2023, 3:02 AMbrave-car-38294
04/07/2023, 3:04 AMend step. I want to know what external paths were used. I want to collect them for lineage purpose to track them for audit purposes for example.straight-shampoo-11124
04/07/2023, 5:21 AMstraight-shampoo-11124
04/07/2023, 5:22 AMmetaflow.S3 or some other libraries to persist data, you can save the URLs as Metaflow artifacts so data lineage get persisted in runsstraight-shampoo-11124
04/07/2023, 5:55 AM@pyspark decorator that allows you to read data with a PySpark job. See this examplebrave-car-38294
04/07/2023, 3:22 PMWe want users of the library to not worry about storing urls in the artifacts but rather collect them automatically (likedoes inautolog(but it's buggy) or whatMetaFlowlistener toopenlineagedoes) when their code is running. This is to avoid them missing out on any external sources they may have accessed but forgot to enter them in url artifact. Also, there might large number of paths they may read. It would not be possible to ask them to enter to all of them.spark
Please correct me if I'm mistaken on understanding that you are referring the developer of the flow to make sure that store the urls in artifacts when developing the code.I'm still reading the documentation on MetaFlow so I might have knowledge gap on some of the concepts.
straight-shampoo-11124
04/08/2023, 1:05 AMcold-ability-47914
05/16/2023, 2:09 AMstraight-shampoo-11124
05/17/2023, 7:30 AM