I'm trying to create a table in a Vertica instance to track the results of the get_compliance_status function over time. However, when I try use the function in an insert, as in
INSERT INTO <some_table> SELECT GET_COMPLIANCE_STATUS();
I get an error indicating that there is no from clause. Same error if I use the function in a CTAS statement.
Why can't I use a select that executes just fine on it's own, i.e.
SELECT GET_COMPLIANCE_STATUS();
and use in another statement that requires a valid select as part of the othe statement?
This seems like a bug in the statement parse tree.
Are there other ways to accomplish what I'm trying do?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.