Bearloga has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/349290 )
Change subject: Add secondSPARQL endpoint
......................................................................
Add secondSPARQL endpoint
Bug: T163501
Change-Id: Ifef4c91d66a87e0a8d33bf044d6d956b0e3b63e2
---
M modules/metrics/wdqs/basic_usage
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/discovery/golden
refs/changes/90/349290/1
diff --git a/modules/metrics/wdqs/basic_usage b/modules/metrics/wdqs/basic_usage
index 5fd7a10..b1c640a 100755
--- a/modules/metrics/wdqs/basic_usage
+++ b/modules/metrics/wdqs/basic_usage
@@ -3,7 +3,7 @@
hive -S -e "USE wmf;
SELECT
'$1' AS date,
- uri_path AS path,
+ IF(uri_path = '/sparql', '/bigdata/namespace/wdq/sparql', uri_path) AS path,
UPPER(http_status IN('200','304')) as http_success,
CASE
WHEN (
@@ -27,10 +27,10 @@
AND CONCAT(year, '-', LPAD(month, 2, '0'), '-', LPAD(day, 2, '0')) >= '$1'
AND CONCAT(year, '-', LPAD(month, 2, '0'), '-', LPAD(day, 2, '0')) < '$2'
AND uri_host = 'query.wikidata.org'
- AND uri_path IN('/', '/bigdata/namespace/wdq/sparql', '/bigdata/ldf')
+ AND uri_path IN('/', '/bigdata/namespace/wdq/sparql', '/bigdata/ldf',
'/sparql')
GROUP BY
'$1',
- uri_path,
+ IF(uri_path = '/sparql', '/bigdata/namespace/wdq/sparql', uri_path) AS path,
UPPER(http_status IN('200','304')),
CASE
WHEN (
--
To view, visit https://gerrit.wikimedia.org/r/349290
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifef4c91d66a87e0a8d33bf044d6d956b0e3b63e2
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/discovery/golden
Gerrit-Branch: master
Gerrit-Owner: Bearloga <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits