meridor / perspective-backend

Scalable multi-cloud management API and shell
Apache License 2.0
16 stars 6 forks source link

Parameters should be automatically casted during comparison #117

Closed vania-pooh closed 8 years ago

vania-pooh commented 8 years ago
perspective> set projects = 123
perspective> show instances
Command failed : request returned no data

Exception in REST:

java.lang.IllegalArgumentException: Incorrect boolean expression argument types: class java.lang.String and class java.lang.Integer
        at org.meridor.perspective.sql.impl.expression.ExpressionEvaluatorImpl.evaluateSimpleBooleanExpression(ExpressionEvaluatorImpl.java:257)
        at org.meridor.perspective.sql.impl.expression.ExpressionEvaluatorImpl.evaluateSimpleBooleanExpression(ExpressionEvaluatorImpl.java:220)
        at org.meridor.perspective.sql.impl.expression.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:62)
        at org.meridor.perspective.sql.impl.expression.ExpressionEvaluatorImpl.evaluateAs(ExpressionEvaluatorImpl.java:77)
        at org.meridor.perspective.sql.impl.expression.ExpressionEvaluatorImpl.evaluateAsOrDefault(ExpressionEvaluatorImpl.java:85)
        at org.meridor.perspective.sql.impl.expression.ExpressionEvaluatorImpl.evaluateBinaryBooleanExpression(ExpressionEvaluatorImpl.java:272)
        at org.meridor.perspective.sql.impl.expression.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:64)
        at org.meridor.perspective.sql.impl.expression.ExpressionEvaluatorImpl.evaluateAs(ExpressionEvaluatorImpl.java:77)
        at org.meridor.perspective.sql.impl.QuerySchedulerImpl.lambda$schedule$37(QuerySchedulerImpl.java:68)
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)