Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

TAJO-1653: Add 'INSERT INTO VALUES' statement for OLTP-like storages.#832

Closed
hyunsik wants to merge 2 commits into
apache:masterfrom
hyunsik:TAJO-1653
Closed

TAJO-1653: Add 'INSERT INTO VALUES' statement for OLTP-like storages.#832
hyunsik wants to merge 2 commits into
apache:masterfrom
hyunsik:TAJO-1653

Conversation

@hyunsik
Copy link
Copy Markdown
Member

@hyunsik hyunsik commented Oct 20, 2015

No description provided.

@jihoonson
Copy link
Copy Markdown
Contributor

Hi @hyunsik, this patch emits the following error.

pgsql_db> insert into test values (1::int8, 'name1');
ERROR: org.apache.tajo.exception.NotImplementedException: not implemented feature: org.apache.tajo.storage.jdbc.JdbcTablespace::verifySchemaToWrite

Here is the log.

2015-10-23 13:19:03,298 WARN org.apache.tajo.plan.verifier.VerificationState: org.apache.tajo.master.GlobalEngine:verifyInsertTableSchema(320) causes: org.apache.tajo.exception.NotImplementedException: not implemented feature: org.apache.tajo.storage.jdbc.JdbcTablespace::verifySchemaToWrite
2015-10-23 13:19:03,298 ERROR org.apache.tajo.master.GlobalEngine:
Stack Trace:
org.apache.tajo.exception.TajoRuntimeException: org.apache.tajo.exception.NotImplementedException: not implemented feature: org.apache.tajo.storage.jdbc.JdbcTablespace::verifySchemaToWrite
        at org.apache.tajo.storage.jdbc.JdbcTablespace.verifySchemaToWrite(JdbcTablespace.java:160)
        at org.apache.tajo.master.GlobalEngine.verifyInsertTableSchema(GlobalEngine.java:315)
        at org.apache.tajo.master.GlobalEngine.createLogicalPlan(GlobalEngine.java:287)
        at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:190)
        at org.apache.tajo.master.TajoMasterClientService$TajoMasterClientProtocolServiceHandler.submitQuery(TajoMasterClientService.java:303)
        at org.apache.tajo.ipc.TajoMasterClientProtocol$TajoMasterClientProtocolService$2.callBlockingMethod(TajoMasterClientProtocol.java:675)
        at org.apache.tajo.rpc.BlockingRpcServer$ServerHandler.channelRead0(BlockingRpcServer.java:100)
        at org.apache.tajo.rpc.BlockingRpcServer$ServerHandler.channelRead0(BlockingRpcServer.java:61)
        at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
        at org.apache.tajo.rpc.MonitorServerHandler.channelRead(MonitorServerHandler.java:70)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.tajo.exception.NotImplementedException: not implemented feature: org.apache.tajo.storage.jdbc.JdbcTablespace::verifySchemaToWrite
        ... 29 more

@hyunsik
Copy link
Copy Markdown
Member Author

hyunsik commented Oct 23, 2015

This issue is for Tajo QueryExecutor layer. So, it works with Hbase that already supports INSERT. In contrast, JDBC storage does not support INSERT.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you explain what p293 means?

@jihoonson
Copy link
Copy Markdown
Contributor

Oh, ok. I misunderstood due to the title.
Here is my +1.

@asfgit asfgit closed this in 6947bc5 Oct 23, 2015
@hyunsik hyunsik deleted the TAJO-1653 branch October 23, 2015 06:01
@hyunsik
Copy link
Copy Markdown
Member Author

hyunsik commented Oct 23, 2015

Thank you! I just committed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants