carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <...@git.apache.org>
Subject [GitHub] carbondata issue #1425: [WIP]Thrift Changes to support Pre-aggregate
Date Mon, 23 Oct 2017 04:35:14 GMT
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1425
  
    just try this
    ```
    
    struct RelationIdentifier {
       1: optional string databaseName;
       2: required string tableName;
       3: required string tableId;
    }
    
    struct ColumnRelation{
       // child column
       1: required ColumnSchema table_column;
       2: optional list<ParentColumnTableRelation> columnTableRelation;
    }
    
    struct ParentColumnTableRelation {
       1: required RelationIdentifier relationInfo;
       2: required string columnId;
       3: required string columnName
    }
    
    
    struct DataMapSchema {
      1: required string className;
      2: optional list<RelationIdentifier> relationInfos;
      3: optional list<ColumnRelation> columnRelationList;
      // to maintain properties like select query, query type like groupby, join
      4: optional map<string, string> properties;
    }
    
    struct TableInfo{
      1: required TableSchema fact_table;
      2: required list<TableSchema> aggregate_table_list;
      3: optional list<DataMapSchema> dataMapSchemas; // dataMapSchema information
    }
    ```


---

Mime
View raw message