Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-2707

count(*) is not working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: build, sql
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zzhang9 zhangzhuo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: