Schema Info
Schema Name: sfdl_dev_segment.sfdc_productlistviewed
- created: 2021-01-29 12:49:38
- disabled: False
- format: raw
- id: 1535
- is_partitioned: True
- is_schema_datatyped: False
- name:
{ "database": "sfdl_dev_segment", "table": "sfdc_productlistviewed" } - type: segment
Schema Versions: 1
-
Version 4684362
- created: 2021-01-29 12:49:39
- ddl:
[ "CREATE DATABASE IF NOT EXISTS `sfdl_dev_segment`", "DROP TABLE IF EXISTS `sfdl_dev_segment.sfdc_productlistviewed`", "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_segment.sfdc_productlistviewed`\n(\n`anonymousId`STRING,`context`struct<`library`:struct<`name`:STRING,`version`:STRING>,`page`:struct<`path`:STRING,`referrer`:STRING,`search`:STRING,`title`:STRING,`url`:STRING>,`userAgent`:STRING,`ip`:STRING>,`event`STRING,`messageId`STRING,`properties`struct<`Hit_Timestamp`:STRING,`category`:STRING,`list_id`:STRING,`products`:array>,`site_id`:STRING>,`receivedAt`STRING,`sentAt`STRING,`timestamp`STRING,`type`STRING,`userId`STRING,`channel`STRING,`originalTimestamp`STRING,`projectId`STRING,`version`STRING,`_origin`STRING\n)\nPARTITIONED BY (dt string)\nROW FORMAT SERDE\n'org.openx.data.jsonserde.JsonSerDe'\n \nSTORED AS INPUTFORMAT\n 'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT\n 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION\n 's3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed'\n", "MSCK REPAIR TABLE sfdl_dev_segment.sfdc_productlistviewed" ] - hive_path: s3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed
- id: 4684362
- processed: 0
- raw_data:
{ "_metadata": { "bundled": [ "Google Analytics", "Segment.io" ], "unbundled": [] }, "_origin": "2021-01-29T18:37:12Z|s3://sfdl-segment-sfdc-dev/segment-logs/OIyQwmGWuW/1484006400000/1484085218711.74ad58a88154.1.10.5.7a0990ca-c759-4e86-8969-0e74c919379d.gz|segment_separator:1", "anonymousId": "46416c02-b828-469a-bf35-acca6a453113", "channel": "client", "context": { "campaign": {}, "ip": "207.71.19.142", "library": { "name": "analytics.js", "version": "3.0.0" }, "page": { "path": "/search.html", "referrer": "http://www.sparefoot.local/", "search": "?moveInDate=&location=Dallas%2C+TX%2C+United+States&city=Dallas&state=TX&latitude=32.7766642&longitude=-96.79698789999998", "title": "Find Self Storage Units and Facilities in Dallas, TX 75201 | SpareFoot", "url": "http://www.sparefoot.local/search.html?moveInDate=&location=Dallas%2C+TX%2C+United+States&city=Dallas&state=TX&latitude=32.7766642&longitude=-96.79698789999998" }, "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36" }, "event": "Product List Viewed", "integrations": {}, "messageId": "ajs-21d1dbc93b52c15a471e42576ae2075b", "originalTimestamp": "2017-01-10T21:44:04.020Z", "projectId": "OIyQwmGWuW", "properties": { "Hit Timestamp": 1484084644019, "activePhlags_sf_1933_improved_filter_visibility": "control", "activePhlags_sf_1936_search_help_widget": "help_widget", "activePhlags_sf_1994_map_zoom": "zoomed", "activePhlags_sf_2016_aa_groundhog_day": "variation", "activePhlags_sf_2063_stacked_ui_flow": "control", "activePhlags_sf_2064_mobile_map_v2": "control", "activePhlags_sf_2066_value_prop_mab": "find_compare", "activePhlags_sf_2081_mobile_map_ctr": "bold", "activePhlags_sf_2158_gate_page": "control", "category": "Dallas, Texas", "list_id": "search results: Dallas, TX, United States", "products": [ { "product_id": "Life Storage - Mesquite - Franklin Dr" }, { "product_id": "Life Storage - Dallas - South Good Latimer Expressway" }, { "product_id": "Great Value Storage - Samuell Blvd." }, { "product_id": "CubeSmart Self Storage" }, { "product_id": "Life Storage - Mesquite - North Belt Line Road" }, { "product_id": "Life Storage - Dallas - Harry Hines Blvd" }, { "product_id": "Life Storage - Dallas - S Buckner Blvd" }, { "product_id": "Love Field Storage" }, { "product_id": "Life Storage - Dallas - Plantation Rd" }, { "product_id": "Move It Self Storage - Grand Prairie" }, { "product_id": "CubeSmart Self Storage" }, { "product_id": "Life Storage - Dallas - Milton St" }, { "product_id": "Security Self Storage - Forest & LBJ" }, { "product_id": "Life Storage - Richardson" }, { "product_id": "Abrams Skillman Self Storage" } ], "site_id": "-1" }, "receivedAt": "2017-01-10T21:44:04.124Z", "sentAt": "2017-01-10T21:44:04.023Z", "timestamp": "2017-01-10T21:44:04.121Z", "type": "track", "userId": "7757a24310d7e379347714535", "version": 2 } - schema_attributes:
{ "_origin": "string", "anonymousId": "string", "channel": "string", "context.ip": "string", "context.library.name": "string", "context.library.version": "string", "context.page.path": "string", "context.page.referrer": "string", "context.page.search": "string", "context.page.title": "string", "context.page.url": "string", "context.userAgent": "string", "event": "string", "messageId": "string", "originalTimestamp": "string", "projectId": "string", "properties.Hit_Timestamp": "string", "properties.category": "string", "properties.list_id": "string", "properties.products": [ { "product_id": "string" } ], "properties.site_id": "string", "receivedAt": "string", "sentAt": "string", "timestamp": "string", "type": "string", "userId": "string", "version": "string" } - schema_name_id: 1535
- schema_scan_id: 5749514
- updated: None
Schema Scans: 1
Last at 2021-01-29 12:49:38
-
Scan 5749514
- duration: 0:08:09.925200
- exit_message:
{ "exception": "failed to apply schema `Query failed: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. null `MSCK REPAIR TABLE sfdl_dev_segment.sfdc_productlistviewed``: ['CREATE DATABASE IF NOT EXISTS `sfdl_dev_segment`', 'DROP TABLE IF EXISTS `sfdl_dev_segment.sfdc_productlistviewed`', \"CREATE EXTERNAL TABLE IF NOT EXISTS\\n`sfdl_dev_segment.sfdc_productlistviewed`\\n(\\n`anonymousId`STRING,`context`struct<`library`:struct<`name`:STRING,`version`:STRING>,`page`:struct<`path`:STRING,`referrer`:STRING,`search`:STRING,`title`:STRING,`url`:STRING>,`userAgent`:STRING,`ip`:STRING>,`event`STRING,`messageId`STRING,`properties`struct<`Hit_Timestamp`:STRING,`category`:STRING,`list_id`:STRING,`products`:array>,`site_id`:STRING>,`receivedAt`STRING,`sentAt`STRING,`timestamp`STRING,`type`STRING,`userId`STRING,`channel`STRING,`originalTimestamp`STRING,`projectId`STRING,`version`STRING,`_origin`STRING\\n)\\nPARTITIONED BY (dt string)\\nROW FORMAT SERDE\\n'org.openx.data.jsonserde.JsonSerDe'\\n \\nSTORED AS INPUTFORMAT\\n 'org.apache.hadoop.mapred.TextInputFormat'\\nOUTPUTFORMAT\\n 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\\nLOCATION\\n 's3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed'\\n\", 'MSCK REPAIR TABLE sfdl_dev_segment.sfdc_productlistviewed']\nTraceback (most recent call last):\n File \"/schema_manager/schema_generator/table_generator.py\", line 24, in apply_latest_version\n self.runner.run_multi_query(schema_version.ddl, timeout=DDLQueueWorker.TIMEOUT)\n File \"/src/athena-runner/athena_runner/runner.py\", line 133, in run_multi_query\n result = self.run_single_query(query, timeout, database)\n File \"/src/athena-runner/athena_runner/runner.py\", line 51, in run_single_query\n return self._run_single_query(query, timeout, database)\n File \"/src/athena-runner/athena_runner/runner.py\", line 120, in _run_single_query\n raise e\n File \"/src/athena-runner/athena_runner/runner.py\", line 103, in _run_single_query\n raise AthenaRunnerQueryException('Query failed: {} `{}`'.format(info['QueryExecution']['Status']['StateChangeReason'], query))\nathena_runner.exceptions.AthenaRunnerQueryException: Query failed: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. null `MSCK REPAIR TABLE sfdl_dev_segment.sfdc_productlistviewed`\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/schema_manager/schema_generator/schema_scanner.py\", line 102, in scan\n response = service.run()\n File \"/schema_manager/schema_generator/process_hive_table.py\", line 98, in run\n response['ddl_changed'] = table_generator.run()\n File \"/schema_manager/schema_generator/table_generator.py\", line 35, in run\n self.apply_latest_version()\n File \"/schema_manager/schema_generator/table_generator.py\", line 26, in apply_latest_version\n raise Exception('failed to apply schema `{}`: {}'.format(e, schema_version.ddl))\nException: failed to apply schema `Query failed: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. null `MSCK REPAIR TABLE sfdl_dev_segment.sfdc_productlistviewed``: ['CREATE DATABASE IF NOT EXISTS `sfdl_dev_segment`', 'DROP TABLE IF EXISTS `sfdl_dev_segment.sfdc_productlistviewed`', \"CREATE EXTERNAL TABLE IF NOT EXISTS\\n`sfdl_dev_segment.sfdc_productlistviewed`\\n(\\n`anonymousId`STRING,`context`struct<`library`:struct<`name`:STRING,`version`:STRING>,`page`:struct<`path`:STRING,`referrer`:STRING,`search`:STRING,`title`:STRING,`url`:STRING>,`userAgent`:STRING,`ip`:STRING>,`event`STRING,`messageId`STRING,`properties`struct<`Hit_Timestamp`:STRING,`category`:STRING,`list_id`:STRING,`products`:array >,`site_id`:STRING>,`receivedAt`STRING,`sentAt`STRING,`timestamp`STRING,`type`STRING,`userId`STRING,`channel`STRING,`originalTimestamp`STRING,`projectId`STRING,`version`STRING,`_origin`STRING\\n)\\nPARTITIONED BY (dt string)\\nROW FORMAT SERDE\\n'org.openx.data.jsonserde.JsonSerDe'\\n \\nSTORED AS INPUTFORMAT\\n 'org.apache.hadoop.mapred.TextInputFormat'\\nOUTPUTFORMAT\\n 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\\nLOCATION\\n 's3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed'\\n\", 'MSCK REPAIR TABLE sfdl_dev_segment.sfdc_productlistviewed']\n: Expecting value: line 1 column 1 (char 0)" } - id: 5749514
- payload:
{ "datatype_dict": null, "file_format": "json", "is_schema_datatyped": false, "partition": { "location": "s3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed/dt=2017-01-10/", "name": "dt", "type": "string", "value": "2017-01-10" }, "s3": { "bucket": "sfdl-segment-sfdc-dev", "hive_path": "s3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed", "key": "separated_dt/Product List Viewed/dt=2017-01-10/1484085218711.74ad58a88154.1.10.5.7a0990ca-c759-4e86-8969-0e74c919379d.json.gz" }, "schema": { "name": "sfdl_dev_segment.sfdc_ProductListViewed", "type": "segment" } } - running: False
- schema_name_id: 1535
- start_time: 2021-01-29 12:49:38
- success: False
- trace_id: 12881660622539427525
- count: 1
- ddl:
[ "ALTER TABLE\n `sfdl_dev_segment.sfdc_productlistviewed`\nADD\n\n\n PARTITION (dt='2017-01-10') location 's3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed/dt=2017-01-10/'\n;" ] - name: dt
- state:
[ { "info": { "id": 164649, "location": "s3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed/dt=2017-01-10/", "name": "dt", "value": "2017-01-10" }, "state": { "arrival": { "athena_discovery": false, "first_data": "2021-01-29 12:49:39", "last_data": "2021-01-29 15:01:35" }, "parquet": { "first_performed": null, "in_progress": null, "job_id": null, "last_performed": null, "queued": true } } } ] - type: string
- attributes:
{ "_origin": "string", "anonymousId": "string", "channel": "string", "context.ip": "string", "context.library.name": "string", "context.library.version": "string", "context.page.path": "string", "context.page.referrer": "string", "context.page.search": "string", "context.page.title": "string", "context.page.url": "string", "context.userAgent": "string", "event": "string", "messageId": "string", "originalTimestamp": "string", "projectId": "string", "properties.Hit_Timestamp": "string", "properties.category": "string", "properties.list_id": "string", "properties.products": [ { "product_id": "string" } ], "properties.site_id": "string", "receivedAt": "string", "sentAt": "string", "timestamp": "string", "type": "string", "userId": "string", "version": "string" } - created: 2021-01-29 12:49:39
- ddl:
{ "create_database": "CREATE DATABASE IF NOT EXISTS `sfdl_dev_segment`", "create_table": "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_segment.sfdc_productlistviewed`\n(\n`anonymousId`STRING,`context`struct<`library`:struct<`name`:STRING,`version`:STRING>,`page`:struct<`path`:STRING,`referrer`:STRING,`search`:STRING,`title`:STRING,`url`:STRING>,`userAgent`:STRING,`ip`:STRING>,`event`STRING,`messageId`STRING,`properties`struct<`Hit_Timestamp`:STRING,`category`:STRING,`list_id`:STRING,`products`:array>,`site_id`:STRING>,`receivedAt`STRING,`sentAt`STRING,`timestamp`STRING,`type`STRING,`userId`STRING,`channel`STRING,`originalTimestamp`STRING,`projectId`STRING,`version`STRING,`_origin`STRING\n)\nPARTITIONED BY (dt string)\nROW FORMAT SERDE\n'org.openx.data.jsonserde.JsonSerDe'\n \nSTORED AS INPUTFORMAT\n 'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT\n 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION\n 's3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed'\n", "drop_table": "DROP TABLE IF EXISTS `sfdl_dev_segment.sfdc_productlistviewed`", "repair_table": "MSCK REPAIR TABLE sfdl_dev_segment.sfdc_productlistviewed" }
- hostname: schemamanager-5447774fc6-4w58v
- name: schema_manager
- process_start: 2026-04-02 21:43:44
- sf_env: dev
- version: 2427328685
{
"name": {
"created": "2021-01-29 12:49:38",
"disabled": false,
"format": "raw",
"id": 1535,
"is_partitioned": true,
"is_schema_datatyped": false,
"name": {
"database": "sfdl_dev_segment",
"table": "sfdc_productlistviewed"
},
"type": "segment"
},
"partition": {
"count": 1,
"ddl": [
"ALTER TABLE\n `sfdl_dev_segment.sfdc_productlistviewed`\nADD\n\n\n PARTITION (dt='2017-01-10') location 's3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed/dt=2017-01-10/'\n;"
],
"name": "dt",
"state": [
{
"info": {
"id": 164649,
"location": "s3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed/dt=2017-01-10/",
"name": "dt",
"value": "2017-01-10"
},
"state": {
"arrival": {
"athena_discovery": false,
"first_data": "2021-01-29 12:49:39",
"last_data": "2021-01-29 15:01:35"
},
"parquet": {
"first_performed": null,
"in_progress": null,
"job_id": null,
"last_performed": null,
"queued": true
}
}
}
],
"type": "string"
},
"schema": {
"attributes": {
"_origin": "string",
"anonymousId": "string",
"channel": "string",
"context.ip": "string",
"context.library.name": "string",
"context.library.version": "string",
"context.page.path": "string",
"context.page.referrer": "string",
"context.page.search": "string",
"context.page.title": "string",
"context.page.url": "string",
"context.userAgent": "string",
"event": "string",
"messageId": "string",
"originalTimestamp": "string",
"projectId": "string",
"properties.Hit_Timestamp": "string",
"properties.category": "string",
"properties.list_id": "string",
"properties.products": [
{
"product_id": "string"
}
],
"properties.site_id": "string",
"receivedAt": "string",
"sentAt": "string",
"timestamp": "string",
"type": "string",
"userId": "string",
"version": "string"
},
"created": "2021-01-29 12:49:39",
"ddl": {
"create_database": "CREATE DATABASE IF NOT EXISTS `sfdl_dev_segment`",
"create_table": "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_segment.sfdc_productlistviewed`\n(\n`anonymousId`STRING,`context`struct<`library`:struct<`name`:STRING,`version`:STRING>,`page`:struct<`path`:STRING,`referrer`:STRING,`search`:STRING,`title`:STRING,`url`:STRING>,`userAgent`:STRING,`ip`:STRING>,`event`STRING,`messageId`STRING,`properties`struct<`Hit_Timestamp`:STRING,`category`:STRING,`list_id`:STRING,`products`:array>,`site_id`:STRING>,`receivedAt`STRING,`sentAt`STRING,`timestamp`STRING,`type`STRING,`userId`STRING,`channel`STRING,`originalTimestamp`STRING,`projectId`STRING,`version`STRING,`_origin`STRING\n)\nPARTITIONED BY (dt string)\nROW FORMAT SERDE\n'org.openx.data.jsonserde.JsonSerDe'\n \nSTORED AS INPUTFORMAT\n 'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT\n 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION\n 's3://sfdl-segment-sfdc-dev/separated_dt/Product List Viewed'\n",
"drop_table": "DROP TABLE IF EXISTS `sfdl_dev_segment.sfdc_productlistviewed`",
"repair_table": "MSCK REPAIR TABLE sfdl_dev_segment.sfdc_productlistviewed"
}
},
"server": {
"hostname": "schemamanager-5447774fc6-4w58v",
"name": "schema_manager",
"process_start": "2026-04-02 21:43:44",
"sf_env": "dev",
"version": "2427328685"
}
}