carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From linqer <...@git.apache.org>
Subject [GitHub] carbondata issue #1234: fix bug in Spi2CarbondataTypeMapper method, it will ...
Date Thu, 17 Aug 2017 07:30:06 GMT
Github user linqer commented on the issue:

    https://github.com/apache/carbondata/pull/1234
  
    Table Script´╝Ü
    carbon.sql("create table nation ( n_nationkey int, n_name string, n_regionkey int, n_comment
string ) stored by 'carbondata'")
    
    The lastest master branch:
    sql: select * from nation where n_name='ALGERIA';
    
    2017-08-17T14:17:07.675+0800	DEBUG	query-execution-9	com.facebook.presto.execution.QueryStateMachine
Query 20170817_061707_00025_mpcq7 is FAILED
    2017-08-17T14:17:07.675+0800	ERROR	query-execution-7	com.facebook.presto.execution.QueryStateMachine
Query 20170817_061707_00025_mpcq7 failed
    com.facebook.presto.spi.PrestoException: DECIMAL precision must be in range [1, 38]
    	at com.facebook.presto.spi.type.DecimalType.validatePrecisionScale(DecimalType.java:94)
    	at com.facebook.presto.spi.type.ShortDecimalType.<init>(ShortDecimalType.java:34)
    	at com.facebook.presto.spi.type.DecimalType.createDecimalType(DecimalType.java:37)
    	at org.apache.carbondata.presto.CarbondataRecordSetProvider.Spi2CarbondataTypeMapper(CarbondataRecordSetProvider.java:259)
    	at org.apache.carbondata.presto.CarbondataRecordSetProvider.fillFilter2QueryModel(CarbondataRecordSetProvider.java:134)
    	at org.apache.carbondata.presto.CarbondataRecordSetProvider.getRecordSet(CarbondataRecordSetProvider.java:110)
    	at org.apache.carbondata.presto.CarbondataPageSourceProvider.createPageSource(CarbondataPageSourceProvider.java:48)
    	at com.facebook.presto.spi.connector.classloader.ClassLoaderSafeConnectorPageSourceProvider.createPageSource(ClassLoaderSafeConnectorPageSourceProvider.java:44)
    	at com.facebook.presto.split.PageSourceManager.createPageSource(PageSourceManager.java:56)
    	at com.facebook.presto.operator.ScanFilterAndProjectOperator.getOutput(ScanFilterAndProjectOperator.java:213)
    	at com.facebook.presto.operator.Driver.processInternal(Driver.java:378)
    	at com.facebook.presto.operator.Driver.processFor(Driver.java:301)
    	at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:622)
    	at com.facebook.presto.execution.TaskExecutor$PrioritizedSplitRunner.process(TaskExecutor.java:534)
    	at com.facebook.presto.execution.TaskExecutor$Runner.run(TaskExecutor.java:670)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    	
    	
    The pr-1234 branch:
    
    git fetch origin pull/1234/head:pr-1234
    
    sql: select * from nation where n_name='ALGERIA';
    
    select * from nation where n_name='ALGERIA';
     n_nationkey | n_name  | n_regionkey |                      n_comment                
     
    -------------+---------+-------------+-----------------------------------------------------
               0 | ALGERIA |           0 |  haggle. carefully final deposits detect slyly
agai 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message