Changeset 23c0988


Ignore:
Timestamp:
Jun 28, 2017 2:50:37 PM (3 months ago)
Author:
www-data <www-data@…>
Branches:
master
Children:
daab8e2
Parents:
74499ec
git-author:
JHalili <j.halili@…> (06/28/17 10:39:40)
git-committer:
www-data <www-data@…> (06/28/17 14:50:37)
Message:

ticket:1509 - Throw excpetion when dimension of query and MDD do not match.

Summary: Added the option of throwing an exception whenever the dimension between the query does not match with the MDD being investigated dimension.

Test Plan: Files in the /systemtest/testcases_mandatory/test_subsetting/query and also systemtest/testcases_mandatory/test_subsetting/oracle are used.

Reviewers: bbell, dmisev

Reviewed By: bbell, dmisev

Differential Revision: http://codereview.rasdaman.org/D427

Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • qlparser/oql.yy

    r1ae3d08 r23c0988  
    31983198          parseQueryTree->addDynamicObject( dop );
    31993199          $$ = dop;
     3200                $$->setParseInfo( $2->getParseInfo() );
    32003201          if (mflag == MF_IN_CONTEXT)
    32013202            parseQueryTree->addDomainObject( dop );       
  • qlparser/qtdomainoperation.cc

    r1b40e87 r23c0988  
    405405                    resultCell = currentMDDObj->pointQuery(projPoint);
    406406                }
     407                 else
     408                {
     409                    LFATAL << "Error: QtDomainOperation::evaluate() - The dimension of the subset domain is not equal to the dimension of the subsetted marray. The subset domain dimension is: " << projPoint.dimension() <<" while the marray domain dimension is: " << currentMDDObj->getDimension();
     410                    parseInfo.setErrorNo(362);
     411                    throw parseInfo;
     412
     413                }
    407414                if (resultCell == NULL)
    408415                {
Note: See TracChangeset for help on using the changeset viewer.