polite-flower-25924
10/21/2021, 1:22 PMRedshift-usage ingestion and after that operation Queries tab is enabled. However, I’m not able to see any query in it.
When I check the documents of dataset_datasetusagestatisticsaspect_v1 index at ElasticSearch, I’ve validated that there are SQL queries in topSqlQueries fields.
"topSqlQueries": [ -
"/* ' Query generated by Chartio {\"reason\":\"dashboard_refresh_data\"} */ <REDACTED_SQL_COMMAND>",
"-- Looker Query Context '{\"user_id\":111,\"history_id\":22222,\"instance_slug\":\"asdqwezxc\"}' WITH company_wide_cdf AS (/* Primary owner: Seref */ <REDACTED_SQL_COMMAND>"
]
Could you please help me about this issue?polite-flower-25924
10/21/2021, 1:25 PMbig-carpet-38439
10/21/2021, 4:23 PMminiature-tiger-96062
10/21/2021, 5:08 PMminiature-tiger-96062
10/21/2021, 6:41 PMmammoth-bear-12532
polite-flower-25924
10/22/2021, 5:31 AMpolite-flower-25924
10/22/2021, 5:32 AMminiature-tiger-96062
10/22/2021, 5:32 AMpolite-flower-25924
10/22/2021, 6:03 AMCaused by:
org.elasticsearch.client.ResponseException: method [POST], host [<http://elasticsearch-master:9200>], URI [/_reindex?scroll=5m&slices=1&requests_per_second=-1&wait_for_completion=true&timeout=1m], status line [HTTP/1.1 400 Bad Request]|{"took":1107,"timed_out":false,"total":3410,"updated":0,"created":994,"deleted":0,"batches":1,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[{"index":"dataset_datasetusagestatisticsaspect_v1_1634882071332","type":"_doc","id":"0d79b2909ccc3fc97a98d68f63ac6831","cause":{"type":"illegal_argument_exception","reason":"Document contains at least one immense term in field=\"topSqlQueries\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[91, 34, 47, 42, 32, 39, 32, 81, 117, 101, 114, 121, 32, 103, 101, 110, 101, 114, 97, 116, 101, 100, 32, 98, 121, 32, 67, 104, 97, 114]...', original message: bytes can be at most 32766 in length; got 32900","caused_by":{"type":"max_bytes_length_exceeded_exception","reason":"max_bytes_length_exceeded_exception: bytes can be at most 32766 in length; got 32900"}},"status":400},{"index":"dataset_datasetusagestatisticsaspect_v1_1634882071332","type":"_doc","id":"a50804d8beaac5b9e743fba4fb3353d5","cause":{"type":"illegal_argument_exception","reason":"Document contains at least one immense term in field=\"topSqlQueries\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[91, 34, 115, 101, 108, 101, 99, 116, 32, 100, 105, 115, 116, 105, 110, 99, 116, 32, 112, 114, 95, 49, 46, 99, 111, 117, 114, 115, 101, 105]...', original message: bytes can be at most 32766 in length; got 34226","caused_by":{"type":"max_bytes_length_exceeded_exception","reason":"max_bytes_length_exceeded_exception: bytes can be at most 32766 in length; got 34226"}},"status":400},{"index":"dataset_datasetusagestatisticsaspect_v1_1634882071332","type":"_doc","id":"2dd4b33e0871a1ca67760624525758e7","cause":{"type":"illegal_argument_exception","reason":"Document contains at least one immense term in field=\"topSqlQueries\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[91, 34, 112, 97, 100, 98, 95, 102, 101, 116, 99, 104, 95, 115, 97, 109, 112, 108, 101, 58, 32, 115, 101, 108, 101, 99, 116, 32, 42, 32]...', original message: bytes can be at most 32766 in length; got 35563","caused_by":{"type":"max_bytes_length_exceeded_exception","reason":"max_bytes_length_exceeded_exception: bytes can be at most 32766 in length; got 35563"}},"status":400},{"index":"dataset_datasetusagestatisticsaspect_v1_1634882071332","type":"_doc","id":"fe4f1ce1fe093bd9897db999501b1989","cause":{"type":"illegal_argument_exception","reason":"Document contains at least one immense term in field=\"topSqlQueries\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[91, 34, 119, 105, 116, 104, 32, 115, 117, 109, 109, 97, 114, 121, 32, 97, 115, 32, 40, 32, 115, 101, 108, 101, 99, 116, 32, 108, 100, 97]...', original message: bytes can be at most 32766 in length; got 36921","caused_by":{"type":"max_bytes_length_exceeded_exception","reason":"max_bytes_length_exceeded_exception: bytes can be at most 32766 in length; got 36921"}},"status":400},{"index":"dataset_datasetusagestatisticsaspect_v1_1634882071332","type":"_doc","id":"29beaeee8c233a99a885ea7ad411d1a0","cause":{"type":"illegal_argument_exception","reason":"Document contains at least one immense term in field=\"topSqlQueries\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[91, 34, 47, 42, 32, 39, 32, 81, 117, 101, 114, 121, 32, 103, 101, 110, 101, 114, 97, 116, 101, 100, 32, 98, 121, 32, 67, 104, 97, 114]...', original message: bytes can be at most 32766 in length; got 38281","caused_by":{"type":"max_bytes_length_exceeded_exception","reason":"max_bytes_length_exceeded_exception: bytes can be at most 32766 in length; got 38281"}},"status":400},{"index":"dataset_datasetusagestatisticsaspect_v1_1634882071332","type":"_doc","id":"b0879f92dfadeb4166011b2013d993f3","cause":{"type":"illegal_argument_exception","reason":"Document contains at least one immense term in field=\"topSqlQueries\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[91, 34, 45, 45, 32, 76, 111, 111, 107, 101, 114, 32, 81, 117, 101, 114, 121, 32, 67, 111, 110, 116, 101, 120, 116, 32, 39, 123, 92, 34]...', original message: bytes can be at most 32766 in length; got 34431","caused_by":{"type":"max_bytes_length_exceeded_exception","reason":"max_bytes_length_exceeded_exception: bytes can be at most 32766 in length; got 34431"}},"status":400}]}polite-flower-25924
10/22/2021, 6:03 AMpolite-flower-25924
10/22/2021, 6:05 AMtext according to this post: https://discuss.elastic.co/t/bytes-can-be-at-most-32766-in-length/213650/7 ?polite-flower-25924
10/22/2021, 6:46 AM"topSqlQueries": { -
"type": "text",
"fields": { -
"keyword": { -
"type": "keyword",
"ignore_above": 256
}
}
},big-carpet-38439
10/22/2021, 5:55 PMpolite-flower-25924
10/22/2021, 6:56 PMdataset_datasetusagestatisticsaspect_v1 to a temporary index. This temporary index mapping is not aligned with the source index.polite-flower-25924
10/22/2021, 6:58 PMorg.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1872)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1626)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1553)
at org.elasticsearch.client.RestHighLevelClient.reindex(RestHighLevelClient.java:557)
at com.linkedin.metadata.search.elasticsearch.indexbuilder.IndexBuilder.buildIndex(IndexBuilder.java:82)
at com.linkedin.metadata.timeseries.elastic.indexbuilder.TimeseriesAspectIndexBuilders.buildAll(TimeseriesAspectIndexBuilders.java:29)
at com.linkedin.metadata.timeseries.elastic.ElasticSearchTimeseriesAspectService.configure(ElasticSearchTimeseriesAspectService.java:114)
at com.linkedin.metadata.kafka.MetadataChangeLogProcessor.<init>(MetadataChangeLogProcessor.java:81)polite-flower-25924
10/24/2021, 11:34 PMdataset_datasetusagestatisticsaspect_v1 index. Then, I trigger a Redshift usage ingestion job again and everything seems fine. I’m not sure that if it’s a breaking change or not 🙂rich-barista-93413
02/23/2024, 6:18 AMrich-barista-93413
02/27/2024, 4:54 PM