[jira] [Updated] (CARBONDATA-2707) count(*) is not working

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (CARBONDATA-2707) count(*) is not working

Akash R Nilugal (Jira)

     [ https://issues.apache.org/jira/browse/CARBONDATA-2707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

zhangzhuo updated CARBONDATA-2707:
----------------------------------
    Issue Type: Bug  (was: Wish)

> count(*) is not working
> ------------------------
>
>                 Key: CARBONDATA-2707
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2707
>             Project: CarbonData
>          Issue Type: Bug
>          Components: build, sql
>    Affects Versions: 1.3.1
>            Reporter: zhangzhuo
>            Priority: Critical
>
> I use thrift server to query the carbontable.
> But when i use "select count(*) from table" ,i got an error like this:
> Error: org.apache.spark.sql.AnalysisException: Table or view not found: carbon_user_0701; line 1 pos 21 (state=,code=0)
> And then , i use the explain command to show how the physical plan is :
> | == Physical Plan ==
> CarbonCountStar [count(1)#4563L], org.apache.carbondata.core.metadata.schema.table.CarbonTable@7296491f, org.apache.spark.sql.CarbonSession@5e96ea34, true  |
> It looks like when running count(*) command , it will find cache in current session ,but not in the session which the table be created.
> So,what can i do to make the session same or what can i do to make the count(*) command work?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)