[ 
https://issues.apache.org/jira/browse/KYLIN-4361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17025670#comment-17025670
 ] 

weibin0516 commented on KYLIN-4361:
-----------------------------------

OK, what is your jdbc database? mysql or something else? Please provide the ddl 
of the table(using show create table {tableName}) for verification.

> Kylin 3.0.0 Release - Not able to submit job with JDBC Data Sources with 
> Sqoop.
> -------------------------------------------------------------------------------
>
>                 Key: KYLIN-4361
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4361
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: v3.0.0
>         Environment: HDP3.1
>            Reporter: Sonu Singh
>            Assignee: weibin0516
>            Priority: Blocker
>             Fix For: v3.0.0
>
>         Attachments: image-2020-01-28-11-39-25-860.png
>
>
> I am trying to submit a job with JDBC data sources and getting 
> nullpointerexception because of below code:
> File Path - 
> \kylin\source-jdbc\src\main\java\org\apache\kylin\source\jdbc\JdbcHiveInputBase.java
> method - createSqoopToFlatHiveStep
> //code start
> String partCol = null;
> if (partitionDesc.isPartitioned()) {
>  partCol = partitionDesc.getPartitionDateColumn();//tablename.colname
>  }
> // code end
> Fon non-partition cubes, the value of partCol will be always null and 
> creating a exception in below method:
> //code start
> static String quoteIdentifier(String identifier, SourceDialect dialect) {
>  if (KylinConfig.getInstanceFromEnv().enableHiveDdlQuote()) {
>  String[] identifierArray = identifier.split("\\.");
> //code end
> Environment Detail -
> HDP3.1
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to