looker-open-source / pylookml

A pythonic api for automatic lookml
https://pylookml.readthedocs.io/en/latest/introduction.html
MIT License
45 stars 23 forks source link

property check #57

Open russlooker opened 3 years ago

russlooker commented 3 years ago

currently myView = lookml.View('''view: foo { sql_table_name: public.foo ;; }''') if 'sql_table_name' in myView: print("success")

works, but ideally this would as well:

if my_view.sql_table_name: print("success")

currently the boolean check always returns true. Investigate how difficult this would be to address.