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

dimension created with "name" as identifier is not getting parsed and fetched from repo #71

Open tparamanandam opened 2 years ago

tparamanandam commented 2 years ago

We have a view with dimension as name as below in our view created from table. This "name" dimension is not getting fetched from repo by pylookml in views and when the same view file is put and deployed, it is getting removed from the repo's lkml file. For now this happens with only dimension "name".

View created from Table :

view: userdetails { sql_table_name: NextWave_Extract.Users ;; drill_fields: [user_id] dimension: user_id { primary_key: yes type: number sql: ${TABLE}.UserId ;; } dimension: name { type: string sql: ${TABLE}.Name ;; } measure: count { type: count drill_fields: [user_id, name] } }

View fetched from repo by pylookml (missing "name" dimension:

view: userdetails { sql_table_name: NextWave_Extract.Users ;; drill_fields: [user_id] dimension: user_id { primary_key: yes type: number sql: ${TABLE}.UserId ;; } measure: count { type: count drill_fields: [user_id, name] } }