Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting into a view fails with wrong error message #3474

Closed
electrum opened this issue Aug 19, 2015 · 0 comments
Closed

Inserting into a view fails with wrong error message #3474

electrum opened this issue Aug 19, 2015 · 0 comments

Comments

@electrum
Copy link
Contributor

presto:test> create view tmp_view as select * from tmp_src;
CREATE VIEW
presto:test> insert into tmp_view select * from tmp_src;
Query 20150819_235034_04115_tyk28 failed: Table 'raptor.test.tmp_view' does not exist
com.facebook.presto.sql.analyzer.SemanticException: Table 'raptor.test.tmp_view' does not exist
    at com.facebook.presto.sql.analyzer.StatementAnalyzer.visitInsert(StatementAnalyzer.java:371)
    at com.facebook.presto.sql.analyzer.StatementAnalyzer.visitInsert(StatementAnalyzer.java:115)
    at com.facebook.presto.sql.tree.Insert.accept(Insert.java:46)
    at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
    at com.facebook.presto.sql.analyzer.Analyzer.analyze(Analyzer.java:52)
    at com.facebook.presto.execution.SqlQueryExecution.doAnalyzeQuery(SqlQueryExecution.java:256)
    at com.facebook.presto.execution.SqlQueryExecution.analyzeQuery(SqlQueryExecution.java:242)
    at com.facebook.presto.execution.SqlQueryExecution.start(SqlQueryExecution.java:206)
    at com.facebook.presto.execution.QueuedExecution.lambda$start$65(QueuedExecution.java:68)
    at com.facebook.presto.execution.QueuedExecution$$Lambda$523/1798497265.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant