08-03-2022 12:36 PM
Has anyone been able to use a variable as an input to the read function in a python MV?
See example below:
var_name = "sample_schema.sample_table"
dataframe = read(var_name)
save(dataframe)
The code above returns an error when I try to validate. However, if I add test = read("sample_schema.sample_table") into the MV, I have no issues validating or loading the MV.
08-03-2022 08:59 PM
@kxie - Welcome to the community! Thanks for joining!
I chased down an answer. Today the notebook supports static reads during the validation of the MV. We do have dynamic read() as a feature in our backlog today. I was sure to add a link to this question from you as an additional 'vote' for the feature!