HJK181 opened a new issue #7262:
URL: https://github.com/apache/pinot/issues/7262


   I have the following avro schema definition:
   ```
   {
       "type": "record",
       "name": "QueryWithKpis",
       "namespace": "foo.bar.v1",
       "fields": [
           {
               "name": "query",
               "type": {
                   "type": "record",
                   "name": "MappedQuery",
                   "namespace": "foo.bar.v1",
                   "fields": [
                       {
                           "name": "userQuery",
                           "type": {
                               "type": "string",
                               "avro.java.string": "String"
                           }
                       },
                       {
                           "name": "masterQuery",
                           "type": [
                               "null",
                               {
                                   "type": "string",
                                   "avro.java.string": "String"
                               }
                           ]
                       },
                       {
                           "name": "mappingTime",
                           "type": "long",
                           "order": "ignore"
                       }
                   ]
               }
           },
           {
               "name": "kpis",
               "type": {
                   "type": "map",
                   "values": "double",
                   "avro.java.string": "String"
               }
           }
       ]
   }
   ```
   and the following schema definition:
   ```
   {
     "schemaName": "kpis",
     "dimensionFieldSpecs": [
       {
         "name": "query.userQuery",
         "dataType": "STRING"
       },
       {
         "name": "query.masterQuery",
         "dataType": "STRING"
       }
     ],
     "metricFieldSpecs": [
       {
         "name": "kpis.clicks",
         "dataType": "INT"
       },
       {
         "name": "kpis.checkout",
         "dataType": "INT"
       },
       {
         "name": "kpis.cart",
         "dataType": "INT"
       }
     ],
     "dateTimeFieldSpecs": [
       {
         "name": "timestamp",
         "dataType": "LONG",
         "format": "1:SECONDS:EPOCH",
         "granularity": "15:MINUTES"
       }
     ]
   }
   ```
   After running a batch ingestion job, all database rows contain the default 
value of the field's dataType. I tried ingesting the data with complex type 
config and without:
   ```
   "complexTypeConfig": {
     "fieldsToUnnest": [
       "query",
       "kpis",
     ]
   }
   ```      
   Any ideas?


-- 
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