diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-03-18 17:32:53 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-03-18 17:32:53 +0100 |
commit | bcd73cb92c9ab6df5001386cebfc3cb2d0247db8 (patch) | |
tree | ca9489030cc5003631b330fb5969422909179cae /container-search/src/test | |
parent | 949e8235ead29dfa13d9aca8b36ef625a4fe396b (diff) |
Allow dash in ident as it is legal in source names
Diffstat (limited to 'container-search/src/test')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java b/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java index 3f0000367e7..aa2f24107ae 100644 --- a/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java +++ b/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java @@ -681,6 +681,12 @@ public class YqlParserTestCase { } @Test + public void testSourcesWithDash() { + assertSources("select foo from source-a where price <= 500;", + Arrays.asList("source-a")); + } + + @Test public void testWildCardSources() { assertSources("select foo from sources * where price <= 500;", Collections.<String>emptyList()); |