[ https://issues.apache.org/jira/browse/CARBONDATA-315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15571509#comment-15571509 ] ASF GitHub Bot commented on CARBONDATA-315: ------------------------------------------- GitHub user manishgupta88 opened a pull request: https://github.com/apache/incubator-carbondata/pull/234 [CARBONDATA-315] Data loading fails if parsing a double value returns infinity Problem: Data loading fails if parsing a double value returns infinity Analysis: During data load, if a value specified is too big for a double DataType column then while parsing that value as double result is returned as "Infinity". Due to this while we calculate min and max value for measures in carbon data writer step it throws an exception. Fix: If result is Infinity or NAN for double value parsing then make the value as null and add it to bad records. Impact area: Data load which contains non parseable values for a datatype. You can merge this pull request into a Git repository by running: $ git pull https://github.com/manishgupta88/incubator-carbondata double_value_range_failure Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-carbondata/pull/234.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #234 ---- commit f7225f974828edd8b340f88fbfaa2f60d8a7d582 Author: manishgupta88 <[hidden email]> Date: 2016-10-13T09:47:52Z Problem: Data loading fails if parsing a double value returns infinity Analysis: During data load, if a value specified is too big for a double DataType column then while parsing that value as double result is returned as "Infinity". Due to this while we calculate min and max value for measures in carbon data writer step it throws an exception. Fix: If result is Infinity or NAN for double value parsing then make the value as null and add it to bad records. Impact area: Data load which contains non parseable values for a datatype. ---- > Data loading fails if parsing a double value returns infinity > ------------------------------------------------------------- > > Key: CARBONDATA-315 > URL: https://issues.apache.org/jira/browse/CARBONDATA-315 > Project: CarbonData > Issue Type: Bug > Affects Versions: 0.1.0-incubating, 0.2.0-incubating > Reporter: Manish Gupta > Assignee: Manish Gupta > Priority: Minor > Fix For: 0.2.0-incubating > > > During data load, if a value specified is too big for a double DataType column then while parsing that value as double result is returned as "Infinity". Due to this while we calculate min and max value for measures in carbon data writer step it throws an exception. > ERROR 13-10 15:27:56,968 - [t3: Graph - MDKeyGent3][partitionID:0] org.apache.carbondata.processing.store.writer.exception.CarbonDataWriterException > java.util.concurrent.ExecutionException: org.apache.carbondata.processing.store.writer.exception.CarbonDataWriterException > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.util.concurrent.FutureTask.get(FutureTask.java:188) > at org.apache.carbondata.processing.store.CarbonFactDataHandlerColumnar.processWriteTaskSubmitList(CarbonFactDataHandlerColumnar.java:812) > at org.apache.carbondata.processing.store.CarbonFactDataHandlerColumnar.finish(CarbonFactDataHandlerColumnar.java:779) > at org.apache.carbondata.processing.mdkeygen.MDKeyGenStep.processRow(MDKeyGenStep.java:222) > at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.apache.carbondata.processing.store.writer.exception.CarbonDataWriterException > at org.apache.carbondata.processing.store.CarbonFactDataHandlerColumnar$Producer.call(CarbonFactDataHandlerColumnar.java:1244) > at org.apache.carbondata.processing.store.CarbonFactDataHandlerColumnar$Producer.call(CarbonFactDataHandlerColumnar.java:1215) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > ... 1 more -- This message was sent by Atlassian JIRA (v6.3.4#6332) |
Free forum by Nabble | Edit this page |