Skip to main content

Vertica View syntax issues

  • March 31, 2017
  • 2 replies
  • 16 views

Slaagh
Forum|alt.badge.img+1
  • Participating Frequently

Hello,

I recently reverse engineered a SQL View into a Vertica view. I have several nested CTE's in the view.

So, I run the script and the Vertica view is created, but when I open the view in Vertica the syntax is very different. I do not see any of my CTE's and there are tons of conversions going on in the view.

Simply put, the syntax is very different from the view that I created. Does Vertica re-write the view for performance reasons? Or is something seriously wrong?

2 replies

Forum|alt.badge.img+2
  • Participating Frequently
  • April 4, 2017

Process you are following to create and check defination of view in Vertica is not very clear to me . Can you please provide an example ?

You can check view_defination in system table vs_views .


Slaagh
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • April 4, 2017

Thank you, but I figured this out already :)