Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-698

Findbug error in PopulateSampleMetastore

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: examples
    • Labels:

      Description

      org.apache.lens.examples.PopulateSampleMetastore.createContinuousFactData() passes a nonconstant String to an execute or addBatch method on an SQL statement [org.apache.lens.examples.PopulateSampleMetastore] At PopulateSampleMetastore.java:[line 113]

      Code -

      statement.execute("INSERT INTO mydb_sales_aggr_continuous_fact (order_time, delivery_time, customer_id, "
      + "product_id, promotion_id, customer_city_id, production_city_id, delivery_city_id, unit_sales, "
      + "store_sales, store_cost, max_line_item_price, max_line_item_discount) values "
      + "('" + nowTime + "','" + nowTime + "',2,2,1,2,2,2,1,8,2,10,2)");

        Attachments

        1. LENS-698.01.patch
          2 kB
          Yash Sharma

          Issue Links

            Activity

              People

              • Assignee:
                yash360@gmail.com Yash Sharma
                Reporter:
                yash360@gmail.com Yash Sharma
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: