[ https://issues.apache.org/jira/browse/HIVE-17554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16172676#comment-16172676 ]
ZhangBing Lin commented on HIVE-17554: -------------------------------------- Hi,[~lirui],I think you are right,I update the patch. > Occurr java.lang.ArithmeticException: / by zero at hplsql component > ------------------------------------------------------------------- > > Key: HIVE-17554 > URL: https://issues.apache.org/jira/browse/HIVE-17554 > Project: Hive > Issue Type: Bug > Components: hpl/sql > Affects Versions: 3.0.0 > Reporter: ZhangBing Lin > Assignee: ZhangBing Lin > Attachments: HIVE-17554.1.patch > > > When I execute the copyToTable method in hplsql, the following exception > occurs: > java.lang.ArithmeticException: / by zero > at org.apache.hive.hplsql.Copy.copyToTable(Copy.java:170) > at org.apache.hive.hplsql.Copy.run(Copy.java:93) > at org.apache.hive.hplsql.Exec.visitCopy_stmt(Exec.java:1284) > at org.apache.hive.hplsql.Exec.visitCopy_stmt(Exec.java:52) > at > org.apache.hive.hplsql.HplsqlParser$Copy_stmtContext.accept(HplsqlParser.java:12148) > at > org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:70) > at org.apache.hive.hplsql.Exec.visitStmt(Exec.java:994) > at org.apache.hive.hplsql.Exec.visitStmt(Exec.java:52) > at > org.apache.hive.hplsql.HplsqlParser$StmtContext.accept(HplsqlParser.java:1012) > at > org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:70) > at > org.apache.hive.hplsql.HplsqlBaseVisitor.visitBlock(HplsqlBaseVisitor.java:28) > at > org.apache.hive.hplsql.HplsqlParser$BlockContext.accept(HplsqlParser.java:446) > at > org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:70) > at org.apache.hive.hplsql.Exec.visitProgram(Exec.java:901) > at org.apache.hive.hplsql.Exec.visitProgram(Exec.java:52) > at > org.apache.hive.hplsql.HplsqlParser$ProgramContext.accept(HplsqlParser.java:389) > at > org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:42) > at org.apache.hive.hplsql.Exec.run(Exec.java:760) > at org.apache.hive.hplsql.Exec.run(Exec.java:736) > at org.apache.hive.hplsql.Hplsql.main(Hplsql.java:23) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > View source code: > if (info) { > info(ctx, "COPY completed: " + rows + " row(s), " + timer.format() + ", > " + rows/(elapsed/1000) + " rows/sec"); > } > When elapsed less than one thousand will cause the divisor to be zero -- This message was sent by Atlassian JIRA (v6.4.14#64029)