yf-45 commented on issue #12272:
URL: https://github.com/apache/pinot/issues/12272#issuecomment-1895462167

   thanks @walterddr for replying. 
   sure, for the dimension table schema is
   `
   {
     "schemaName": "dimension_table",
     "dimensionFieldSpecs": [
       {
         "name": "fact_id",
         "dataType": "STRING"
       },
       {
         "name": "single_value_column",
         "dataType": "STRING"
       },
       {
         "name": "multi_value_column",
         "dataType": "STRING",
         "singleValueField": false
       }
     ],
     "dateTimeFieldSpecs": [
       {
         "name": "last_updated_date",
         "dataType": "LONG",
         "format": "1:MILLISECONDS:EPOCH",
         "granularity": "1:MILLISECONDS"
       }
     ],
     "primaryKeyColumns": [
       "org_id"
     ]
   }
   `
   for the fact table schema is:
   `
   {
     "schemaName": "fact_table",
     "dimensionFieldSpecs": [
       {
         "name": "fact_id",
         "dataType": "STRING"
       },
       {
         "name": "fact_col1",
         "dataType": "STRING"
       },   
     ],
     "dateTimeFieldSpecs": [
       {
         "name": "ts",
         "dataType": "LONG",
         "format": "1:MILLISECONDS:EPOCH",
         "granularity": "1:SECONDS"
       }  
     ],
     "primaryKeyColumns": [
       "fact_id"
     ]
   }
   `
   Data for dimension table:
   `
   [
     {
       "fact_id": "003387f5-ec7a-4231-8b36-42c4c438c725",
       "single_value_column": "some single value data",
       "multi_value_column": ["multi_value_1", "multi_value_2"],
       "last_updated_date": "1690227815000"
     }
     ]
     `
     
    Data for fact table:  
   `
   [
     {
       "fact_id": "003387f5-ec7a-4231-8b36-42c4c438c725",
        "fact_col1": "some value",
        "ts": "1690227815000"
     }
     ]
     `
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to