{"action":"closed","issue":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/1303","labels_url":"https://api.github.com/repos/querydsl/querydsl/issues/1303/labels{/name}","comments_url":"https://api.github.com/repos/querydsl/querydsl/issues/1303/comments","events_url":"https://api.github.com/repos/querydsl/querydsl/issues/1303/events","html_url":"https://github.com/querydsl/querydsl/issues/1303","id":66402356,"number":1303,"title":"CaseBuilder() is throwing error","user":{"login":"pradeep-tal","id":11691000,"avatar_url":"https://avatars.githubusercontent.com/u/11691000?v=3","gravatar_id":"","url":"https://api.github.com/users/pradeep-tal","html_url":"https://github.com/pradeep-tal","followers_url":"https://api.github.com/users/pradeep-tal/followers","following_url":"https://api.github.com/users/pradeep-tal/following{/other_user}","gists_url":"https://api.github.com/users/pradeep-tal/gists{/gist_id}","starred_url":"https://api.github.com/users/pradeep-tal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradeep-tal/subscriptions","organizations_url":"https://api.github.com/users/pradeep-tal/orgs","repos_url":"https://api.github.com/users/pradeep-tal/repos","events_url":"https://api.github.com/users/pradeep-tal/events{/privacy}","received_events_url":"https://api.github.com/users/pradeep-tal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/querydsl/querydsl/labels/progress","name":"progress","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-05T04:58:36Z","updated_at":"2015-04-17T19:02:25Z","closed_at":"2015-04-17T19:02:25Z","body":"I am trying to create Case Expression \r\n\r\n```java\r\nNumberExpression<Float> numExpression = (summary.field1.floatValue().divide(summary.field2.floatValue()).multiply(100)); \t\t\r\nNumberExpression<Float> numberExpression2 = summary.impressions.when(0L).then(0.0F).otherwise(numExpression);\r\n```\r\n\r\nSo the formed SQL Query will contain : \r\n\r\n```sql\r\nwhen summary.impression=0 then 0.0\r\nelse cast summay.field as flaot/ cast summary.field2 as float) * 100 end\r\n```\r\n\r\nit throwing error at * ...unexpected token end i guess not allowing any operators we can expect same error for / also\r\n\r\n\r\n\r\n"}}