Description
'nested_field_num' field is not added to the 'columns' table, and is not properly added when creating a table. This causes the following error.
2016-07-06 18:56:32,247 ERROR org.apache.tajo.master.GlobalEngine: Stack Trace: org.apache.tajo.exception.TajoInternalError: internal error: Column 'NESTED_FIELD_NUM' cannot accept a NULL value. at org.apache.tajo.exception.ExceptionUtil.toTajoExceptionCommon(ExceptionUtil.java:142) at org.apache.tajo.exception.ExceptionUtil.toTajoException(ExceptionUtil.java:169) at org.apache.tajo.exception.ExceptionUtil.throwsIfThisError(ExceptionUtil.java:121) at org.apache.tajo.catalog.AbstractCatalogClient.createTable(AbstractCatalogClient.java:586) at org.apache.tajo.master.exec.CreateTableExecutor.create(CreateTableExecutor.java:112) at org.apache.tajo.master.exec.CreateTableExecutor.create(CreateTableExecutor.java:68) at org.apache.tajo.master.exec.DDLExecutor.execute(DDLExecutor.java:107) at org.apache.tajo.master.exec.QueryExecutor.execute(QueryExecutor.java:120) at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:192) at org.apache.tajo.master.TajoMasterClientService$TajoMasterClientProtocolServiceHandler.submitQuery(TajoMasterClientService.java:299) 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:307) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:293) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:307) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:293) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:307) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:293) 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:307) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:293) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:840) 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:112) at java.lang.Thread.run(Thread.java:745)