Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B61E517FE8 for ; Mon, 13 Apr 2015 13:13:12 +0000 (UTC) Received: (qmail 29442 invoked by uid 500); 13 Apr 2015 13:13:12 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 29424 invoked by uid 500); 13 Apr 2015 13:13:12 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 29414 invoked by uid 99); 13 Apr 2015 13:13:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 13:13:12 +0000 Date: Mon, 13 Apr 2015 13:13:12 +0000 (UTC) From: "Reuben Kuhnert (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10190) CBO: AST mode checks for TABLESAMPLE with AST.toString().contains("TOK_TABLESPLITSAMPLE") MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-10190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492384#comment-14492384 ] Reuben Kuhnert commented on HIVE-10190: --------------------------------------- Also, it looks like my code is failing for some reason, but I'm looking through the logs/links above, but not seeing why it's failing. All I see is that certain tests are not generating XML files, in addition to this: {code} org.apache.hive.jdbc.TestJdbcWithMiniHS2.testNewConnectionConfiguration Failing for the past 26 builds (Since Failed#3363 ) Took 0.53 sec. Error Message Failed to open new session: org.apache.hive.service.cli.HiveSQLException: java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.http.max.worker.threads does not exists. Stacktrace org.apache.hive.service.cli.HiveSQLException: Failed to open new session: org.apache.hive.service.cli.HiveSQLException: java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.http.max.worker.threads does not exists. at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:243) ... Caused by: org.apache.hive.service.cli.HiveSQLException: Failed to open new session: org.apache.hive.service.cli.HiveSQLException: java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.http.max.worker.threads does not exists. at org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:260) at org.apache.hive.service.cli.CLIService.openSessionWithImpersonation(CLIService.java:202) ... Caused by: org.apache.hive.service.cli.HiveSQLException: java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.http.max.worker.threads does not exists. at org.apache.hive.service.cli.session.HiveSessionImpl.configureSession(HiveSessionImpl.java:214) ... Caused by: java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.http.max.worker.threads does not exists. at org.apache.hadoop.hive.ql.processors.SetProcessor.setConf(SetProcessor.java:164) at org.apache.hadoop.hive.ql.processors.SetProcessor.setVariable(SetProcessor.java:127) ... {code} but I'm not sure how my changes would cause this. Please Advise. > CBO: AST mode checks for TABLESAMPLE with AST.toString().contains("TOK_TABLESPLITSAMPLE") > ----------------------------------------------------------------------------------------- > > Key: HIVE-10190 > URL: https://issues.apache.org/jira/browse/HIVE-10190 > Project: Hive > Issue Type: Bug > Components: CBO > Affects Versions: 1.2.0 > Reporter: Gopal V > Assignee: Pengcheng Xiong > Priority: Trivial > Labels: perfomance > Attachments: HIVE-10190-querygen.py, HIVE-10190.01.patch, HIVE-10190.02.patch, HIVE-10190.03.patch > > > {code} > public static boolean validateASTForUnsupportedTokens(ASTNode ast) { > String astTree = ast.toStringTree(); > // if any of following tokens are present in AST, bail out > String[] tokens = { "TOK_CHARSETLITERAL", "TOK_TABLESPLITSAMPLE" }; > for (String token : tokens) { > if (astTree.contains(token)) { > return false; > } > } > return true; > } > {code} > This is an issue for a SQL query which is bigger in AST form than in text (~700kb). -- This message was sent by Atlassian JIRA (v6.3.4#6332)