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

Optimization in Virtual fact

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cube
    • None

    Description

      StorageCandiate.java :
      private Date getStorageTableStartDate(UpdatePeriod interval) throws LensException {
      if (!isStorageTblsAtUpdatePeriodLevel)

      { //In this case the start time and end time is at Storage Level and will be same for all update periods. return this.startTime; }

      return getCubeMetastoreClient().getStorageTableStartDate(
      getCubeMetastoreClient().getStorageTableName(fact.getSourceFactName(), storageName, interval), fact.getName());
      }

      We're passing fact.getName to getStorageTableName, which is doing getFactTable(factTableName) internally. Instead, passing fact would be better.

      Attachments

        Activity

          People

            rajitha.r Rajitha R
            rajitha.r Rajitha R
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: