Please Share your Product Ideas with us!

All ideas are welcome. Just because the Idea doesn't make it into the product immediately does not make it a bad idea.

Build-view tools / Autogen processes should never build views using "SELECT * FROM..."

Any automated processes such as View Builder in Collect, or any Autogen processes that build views typically in dswXXX databases shouldn't use the coding to build views of "SELECT * FROM xxx".

Views should be built by reading the metadata information to find every column, and build out the explicit SELECT statement with each columnname.

  • John Slagle
  • Jun 16 2021
  • Needs review
  • Attach files
  • Pedro Cardoso commented
    July 22, 2021 22:49

    John has SOLD me on this - the case of the shifting of fields and "non-breakage" of view, but integrity issues that could be hidden and cause VERY BAD THINGS is something I have had happen. I still think this is an edge case as any table schema change should only be done via an autogen activity/recycle, but this is good hygiene. VOTED UP!

    This should extend to our methodology where our consultants should NEVER do SELECT * in a view they are creating (e.g. off a target). ALWAYS select all the fields.

  • Pedro Cardoso commented
    July 22, 2021 22:38

    You'll have to sell me on this one for a vote. :-) What is the downside of current implementation?