cancel
Showing results for 
Search instead for 
Did you mean: 

Python MV

kxie
Rocketeer

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. 

1 REPLY 1

JoeM
Community Manager
Community Manager

@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!