Skip to content

Instantly share code, notes, and snippets.

@ereshzealous
Created October 5, 2021 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ereshzealous/6f67fe951bf8f220c84244cd69917327 to your computer and use it in GitHub Desktop.
Save ereshzealous/6f67fe951bf8f220c84244cd69917327 to your computer and use it in GitHub Desktop.
{
"schemaName": "MovieRatingSchema",
"dimensionFieldSpecs": [
{
"name": "id",
"dataType": "STRING"
},
{
"name": "userId",
"dataType": "STRING"
},
{
"name": "movie",
"dataType": "STRING"
},
{
"name": "categories",
"dataType": "STRING",
"singleValueField": false
},
{
"name": "registeredUser",
"dataType": "STRING"
},
{
"name": "country",
"dataType": "STRING"
},
{
"name": "city",
"dataType": "STRING"
}
],
"metricFieldSpecs": [
{
"name": "rating",
"dataType": "DOUBLE"
}
],
"dateTimeFieldSpecs": [
{
"name": "ratedOn",
"dataType": "STRING",
"format": "1:DAYS:SIMPLE_DATE_FORMAT:yyyy-MM-dd",
"granularity": "1:DAYS"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment