kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (KYLIN-3695) Error while creating hive table through Kylin build cube with mysql imported tables
Date Wed, 05 Dec 2018 05:28:00 GMT


ASF GitHub Bot commented on KYLIN-3695:

Emiya0306 opened a new pull request #371: KYLIN-3695, fix lose decimal scale value in column
type decimal(a, b)

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Error while creating hive table through Kylin build cube with mysql imported tables
> -----------------------------------------------------------------------------------
>                 Key: KYLIN-3695
>                 URL:
>             Project: Kylin
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: v2.5.0
>            Reporter: Gaurav Rawat
>            Assignee: XiaoXiang Yu
>            Priority: Minor
>         Attachments: image-2018-12-04-15-53-49-983.png
> HI I am trying to build a cube with Kylin, the data gets souced fine from sqoop but the
next step for creating hive tables fails . Looking at the command being fired it looks weird
as the create statement looks good to me .
> I think the issue is with DOUBLE types as when I remove the same the create statement
works fine . Can someone please help .
> I am using the stack in AWS EMR, kylin 2.5 hive 2.3.0
> The errors logs with commands as as below, the table is a msql table which had columns
with DOUBLE type
> Command
> {code:java}
> hive -e "USE default; DROP TABLE IF EXISTS kylin_intermediate_fm_inv_holdings_8a1c33df_d12b_3609_13ee_39e169169368;
CREATE EXTERNAL TABLE IF NOT EXISTS kylin_intermediate_fm_inv_holdings_8a1c33df_d12b_3609_13ee_39e169169368
) ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' STORED AS TEXTFILE LOCATION 's3://wfg1tst-models/kylin/kylin_metadata/kylin-4ae3b18b-831b-da66-eb8c-7318245c4448/kylin_intermediate_fm_inv_holdings_8a1c33df_d12b_3609_13ee_39e169169368';
ALTER TABLE kylin_intermediate_fm_inv_holdings_8a1c33df_d12b_3609_13ee_39e169169368 SET TBLPROPERTIES('auto.purge'='true');
" --hiveconf hive.merge.mapredfiles=false --hiveconf --hiveconf
dfs.replication=2 --hiveconf hive.exec.compress.output=true --hiveconf
--hiveconf mapreduce.job.split.metainfo.maxsize=-1 --hiveconf hive.merge.mapfiles=false --hiveconf --hiveconf hive.stats.autogather=true{code}
> Error is as below
> {code:java}
> OK Time taken: 1.315 seconds OK Time taken: 0.09 seconds MismatchedTokenException(334!=347)
at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken( at
org.antlr.runtime.BaseRecognizer.match( at org.apache.hadoop.hive.ql.parse.HiveParser.createTableStatement(
at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement( at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(
at org.apache.hadoop.hive.ql.parse.HiveParser.statement( at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(
at org.apache.hadoop.hive.ql.parse.ParseUtils.parse( at org.apache.hadoop.hive.ql.parse.ParseUtils.parse(
at org.apache.hadoop.hive.ql.Driver.compile( at org.apache.hadoop.hive.ql.Driver.compileInternal(
at org.apache.hadoop.hive.ql.Driver.runInternal( at
at at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
at org.apache.hadoop.hive.cli.CliDriver.processCmd( at org.apache.hadoop.hive.cli.CliDriver.processLine(
at org.apache.hadoop.hive.cli.CliDriver.processLine( at org.apache.hadoop.hive.cli.CliDriver.executeDriver(
at at org.apache.hadoop.hive.cli.CliDriver.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke( at
java.lang.reflect.Method.invoke( at
at org.apache.hadoop.util.RunJar.main( FAILED: ParseException line 15:42 mismatched
input '(' expecting ) near 'double' in create table statement{code}
> [hadoop|] [hive|] [kylin|]
> More details here  [] .
Though the same got solved when I used DECIMAL type with precision .
> Also observer that if you use DECIMAL(10) it does not work unless it has a precision
while building mode for the same it gives error as tries to use precision as undefined ie
. DECIMAL(10,undefined)

This message was sent by Atlassian JIRA

View raw message