Amareshwari Sriramadasu created LENS-417:
--------------------------------------------
Summary: Query metrics on prepare are not working
Key: LENS-417
URL: https://issues.apache.org/jira/browse/LENS-417
Project: Apache Lens
Issue Type: Bug
Components: api, driver-jdbc, server
Reporter: Amareshwari Sriramadasu
Assignee: Amareshwari Sriramadasu
Fix For: 2.1
When query metrics are enabled on prepare query, seeing following issues :
{noformat}
lens-shell>prepQuery explain cube select id,name from sample_dim
Explain FAILED:A metric named
lens.MethodMetricGauge.5a82d69f-8968-44f4-af08-cb4a6d65b12a-HiveDriver-org.apache.lens.driver.cube.RewriteUtil-rewriteQuery
already exists
{noformat}
The above happens because the driver config merge went wrong.
Once it is fixed seeing the below :
{noformat}
lens-shell>prepQuery explain cube select id,name from sample_dim
Command failed javax.ws.rs.InternalServerErrorException: HTTP 500 A metric
named
lens.MethodMetricGauge.3d83e617-68a4-4695-ac5e-801392b0b9bc-JDBCDriver-columnar-sql-rewrite
already exists
{noformat}
This happens because prepare happens once for validate and once for prepare.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)