on 01-04-2016 2:19 PM
Hi,
OK, we all know the following is fine
create column table <SCHEMA>.<TABLENAME> as (
SELECT *
FROM "_SYS_BIC".<VIEW>
);
Creates a table with the resultset from the subquery.
Can anyone confirm if it is a limitation of a subquery within CREATE TABLE AS that hints cannot be used? Example below.
create column table <SCHEMA>.<TABLENAME> as (
SELECT *
FROM "_SYS_BIC".<VIEW>
with hint (ignore_view_cache)
);
Many thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Besides the dubious use case of taking snapshots of calculation views...
I don't know of any restriction that would disable the hints when used in this context.
However, the syntax for CTAS <subquery> doesn't allow for hints.
So, what you can do is to wrap the whole query including the hints into a SQL view and run the CTAS based on the view.
"Besides the dubious use case of taking snapshots of calculation views..." - you refer to hint ignore_view_cache? Very specific use case as a card in the back pocket after all model optimization and hardware architecture options have been exhausted.
Thanks for the suggestion, tested and works, very much appreciated, cheers!
User | Count |
---|---|
77 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.