drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "david_hudavy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-4101) The argument 'pattern' of Function 'like' has to be constant!
Date Tue, 17 Nov 2015 10:17:11 GMT
david_hudavy created DRILL-4101:
-----------------------------------

             Summary: The argument 'pattern' of Function 'like' has to be constant!
                 Key: DRILL-4101
                 URL: https://issues.apache.org/jira/browse/DRILL-4101
             Project: Apache Drill
          Issue Type: Bug
          Components: Functions - Drill
    Affects Versions: 1.3.0
         Environment: drill1.2
            Reporter: david_hudavy


0: jdbc:drill:zk=local> select * from dfs.tmp.ta limit 10;
+------------------------------------------+------------------+
|                  rdn_4                   |       imsi       |
+------------------------------------------+------------------+
| mscId=UPG000000000000000000494500412500  | 272004500412500  |
| mscId=UPG000000000000000000494500436500  | 272004500436500  |
| mscId=UPG000000000000000000494501833000  | 272004501833000  |
| mscId=UPG000000000000000000494502712000  | 272004502712000  |
| mscId=UPG000000000000000000494502732500  | 272004502732500  |
| mscId=UPG000000000000000000494502845500  | 272004502845500  |
| mscId=UPG000000000000000000494505721000  | 272004505721000  |
| mscId=UPG000000000000000000494507227500  | 272004507227500  |
| mscId=UPG000000000000000000494509548500  | 272004509548500  |
| mscId=UPG000000000000000000494501644500  | 272004501644500  |
+------------------------------------------+------------------+
10 rows selected (0.344 seconds)
0: jdbc:drill:zk=local> select * from dfs.tmp.tb;
+-----------------------------------------+-------------+
|                  rdn_4                  | epsvplmnid  |
+-----------------------------------------+-------------+
| mscId=10000000000000000000049000579913  | 46000       |
| mscId=10000000000000000000049000579912  | 262280      |
+-----------------------------------------+-------------+
2 rows selected (0.112 seconds)

SELECT count(*) AS cnt
FROM dfs.tmp.ta,dfs.tmp.tb
WHERE ta.rdn_4 = tb.rdn_4
AND ta.imsi NOT LIKE concat(tb.epsvplmnid,'%')

Error: SYSTEM ERROR: DrillRuntimeException: The argument 'pattern' of Function 'like' has
to be constant!

Fragment 0:0

[Error Id: f103529c-60f4-4b8f-8d7a-b1f0619aab30 on vm1-4:31010] (state=,code=0)
[Error Id: f103529c-60f4-4b8f-8d7a-b1f0619aab30 on vm1-4:31010]
        at org.apache.drill.exec.rpc.user.QueryResultHandler.resultArrived(QueryResultHandler.java:118)
[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.rpc.user.UserClient.handleReponse(UserClient.java:110) [drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.rpc.BasicClientWithConnection.handle(BasicClientWithConnection.java:47)
[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.rpc.BasicClientWithConnection.handle(BasicClientWithConnection.java:32)
[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.rpc.RpcBus.handle(RpcBus.java:61) [drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.rpc.RpcBus$InboundHandler.decode(RpcBus.java:233) [drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.rpc.RpcBus$InboundHandler.decode(RpcBus.java:205) [drill-java-exec-1.2.0.jar:1.2.0]
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89)
[netty-codec-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:254)
[netty-handler-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
[netty-codec-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:242)
[netty-codec-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:847)
[netty-transport-4.0.27.Final.jar:4.0.27.Final]
        at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:618)
[netty-transport-native-epoll-4.0.27.Final-linux-x86_64.jar:na]
        at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:329) [netty-transport-native-epoll-4.0.27.Final-linux-x86_64.jar:na]
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:250) [netty-transport-native-epoll-4.0.27.Final-linux-x86_64.jar:na]
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
[netty-common-4.0.27.Final.jar:4.0.27.Final]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message