Skip to content

Commit

Permalink
fixup! add the concat scalar function
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed May 12, 2015
1 parent 76708f5 commit 45e240d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

package io.crate.operation.scalar;

import com.google.common.collect.ImmutableMap;
import io.crate.metadata.FunctionIdent;
import io.crate.metadata.Scalar;
import io.crate.operation.Input;
Expand Down Expand Up @@ -92,6 +93,13 @@ public void testTooFewArguments() throws Exception {
assertEval("", 2);
}

@Test
public void testArgumentThatHasNoStringRepr() throws Exception {
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("cannot cast {foo=bar} to string");
assertEval("", 2, ImmutableMap.of("foo", "bar"));
}

@SuppressWarnings("unchecked")
@Test
public void testNormalize() throws Exception {
Expand Down

0 comments on commit 45e240d

Please sign in to comment.