Very annoying ! Please Remove these feature !!!
Why is everytime i write a view or some object definition in Vertica and then i try to see the written definition
Vertica translates the definition by adding datatype casts, a billion parentheses , trasform in stmt into array defintion !!!
This is a pain in the b..utt when you try review the code or make changes !!!
Please some smart person educate me in why this is required ?
0
Comments
Any example ?
My Create view defintition
Exported definition:
This is just tiny tiny view ! imagina a 5000 k lines of code !
just waisted 4 h running after a loose character ......
Hi,
For a smaller definition (< 65000 characters), you can use view system table to get the structure.
For bigger definitions, still a problem.
Not sure you understood my initial question.
I know how to get the definition(it can be done in more than 5 ways ), my issue is that the Vertica db engine re-writes the definition of views making them really hard to read.
I just wanted to know why ?
- imagine doing maintainance on other Developers code and you acually see different code from the depoly documents --- it is a nightmare !!
this are only few examples
I recognize this issue, and it's very annoying. We actually stopped using views at all, partially because of this reason. As a workaround we stored al 'original' view definitions in a version control environment like Git, and used a script to recreate all views on an hourly or daily basis.