You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/02/26 00:01:00 UTC
[jira] [Commented] (ASTERIXDB-3020) Internal compiler error in sql-compat mode
[ https://issues.apache.org/jira/browse/ASTERIXDB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17498363#comment-17498363 ]
ASF subversion and git services commented on ASTERIXDB-3020:
------------------------------------------------------------
Commit 55ef99bd07404389c9a6ccf089b6a4a6a33fc552 in asterixdb's branch refs/heads/master from Dmitry Lychagin
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=55ef99b ]
[ASTERIXDB-3020][COMP] Fix error in sql-compat mode
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
- Fix internal compiler error in sql-compat mode
Change-Id: Iacc5de2c48c7a81bd622357c2431fb9ae1642957
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/15443
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Dmitry Lychagin <dm...@couchbase.com>
Reviewed-by: Ali Alsuliman <al...@gmail.com>
> Internal compiler error in sql-compat mode
> ------------------------------------------
>
> Key: ASTERIXDB-3020
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-3020
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: COMP - Compiler
> Affects Versions: 0.9.8
> Reporter: Dmitry Lychagin
> Assignee: Dmitry Lychagin
> Priority: Major
> Fix For: 0.9.8
>
>
> The following query fails with NullPointerException:
> {noformat}
> SET `sql_compat` "true";
> SELECT * FROM (select value v from range(1, 2) v) t LIMIT 1;
> {noformat}
> --->
> {noformat}
> java.lang.NullPointerException: Cannot invoke "org.apache.asterix.lang.sqlpp.clause.SelectRegular.getProjections()" because the return value of "org.apache.asterix.lang.sqlpp.clause.SelectClause.getSelectRegular()" is null
> at org.apache.asterix.lang.sqlpp.rewrites.visitor.SqlCompatRewriteVisitor.rewriteSelectBlock(SqlCompatRewriteVisitor.java:571) ~[classes/:?]
> at org.apache.asterix.lang.sqlpp.rewrites.visitor.SqlCompatRewriteVisitor.visit(SqlCompatRewriteVisitor.java:263) ~[classes/:?]
> at org.apache.asterix.lang.sqlpp.rewrites.visitor.SqlCompatRewriteVisitor.visit(SqlCompatRewriteVisitor.java:97) ~[classes/:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)