multiple hints in query, how to pass ?
What is the correct syntax for passing both a label and the direct hint in an insert select query ?
More generic, is it possible to pass multiple hints ( or directives) in the same query?
I have tried variations of
dbadmin=> insert /*+direct*/ /*+label(test2)*/ into test1 select 1;ERROR 4856: Syntax error at or near "/*+" at character 20
LINE 1: insert /*+direct*/ /*+label(test2)*/ into test1 select 1;
^
but with no success ( v 6.1.3-10)
Documentation shows them as functional.
https://my.vertica.com/docs/6.1.x/HTML/index.htm#1342.htm
More generic, is it possible to pass multiple hints ( or directives) in the same query?
I have tried variations of
dbadmin=> insert /*+direct*/ /*+label(test2)*/ into test1 select 1;ERROR 4856: Syntax error at or near "/*+" at character 20
LINE 1: insert /*+direct*/ /*+label(test2)*/ into test1 select 1;
^
but with no success ( v 6.1.3-10)
Documentation shows them as functional.
https://my.vertica.com/docs/6.1.x/HTML/index.htm#1342.htm
0
Comments
insert /*+direct*/ into test1 select /*+label(test2)*/ * from test1;
The issue with the eli's solution is that the label is not getting logged even though the statement parses and executes nicely. We might as well skip the label if its not getting logged.
Hopefully there is a solution to pass the 2 hints in vertica 7, i just don't know what that is.
Sometimes Im really wonder from question. Yes, its not documented, but does no one trying to learn from his/her experience?
Example of DBD output: Should I explain it?
Cheers
L = Load (created during load data).
This post outlines the different type of create types available for projections. yep, not documented and Vertica hints its "the dark side of the Moon"
Sorry for English.
Regards.