Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.1
-
None
Description
When query metrics are enabled on prepare query, seeing following issues :
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
The above happens because the driver config merge went wrong.
Once it is fixed seeing the below :
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
This happens because prepare happens once for validate and once for prepare.