Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2175

Revisit the assumption made by druid calcite adapter that there is only one timestamp column

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.23.0
    • druid-adapter
    • None

    Description

      Currently, the Druid Calcite adapter assumes that the row returned by druid has only one timestamp typed column, this is not true, in fact, we can have multiple projections of the time column with extraction functions. Thus code like this need to be revisited. 

      
      int posTimestampField = -1;
      for (int i = 0; i < fieldTypes.size(); i++) {
      if (fieldTypes.get(i) == ColumnMetaData.Rep.JAVA_SQL_TIMESTAMP) {
       posTimestampField = i;
       break;
       }
      }
      
      

       

      Attachments

        Activity

          People

            danny0405 Danny Chen
            bslim Slim Bouguerra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: