Skip to content

Upgrade to 31.0.0 ; PRO-1257#5

Open
Sybrand wants to merge 5 commits into
masterfrom
druid-31.0.0-update
Open

Upgrade to 31.0.0 ; PRO-1257#5
Sybrand wants to merge 5 commits into
masterfrom
druid-31.0.0-update

Conversation

@Sybrand

@Sybrand Sybrand commented Dec 10, 2024

Copy link
Copy Markdown
Contributor

Overview

Upgrade extension to be compatible with druid 31.0.0

Change in dimensions spec going to 31:

public boolean hasCustomDimensions()
{
   return !(dimensions == null || dimensions.isEmpty());
}

changed to:

public boolean hasFixedDimensions()
{
  return dimensions != null && !dimensions.isEmpty() && !useSchemaDiscovery && !includeAllDimensions;
}

"Rename DimensionsSpec#hasCustomDimensions to hasFixedDimensions and change the meaning subtly: it now
returns true if the DimensionsSpec represents an unchanging list of dimensions, or false if there is
some discovery happening. This is what call sites had expected anyway."

Test

Imported zen data - compared total rows - it matches 29.0.0 and 29.0.1

@linear

linear Bot commented Dec 10, 2024

Copy link
Copy Markdown

PRO-1257

    public boolean hasCustomDimensions()
    {
      return !(dimensions == null || dimensions.isEmpty());
    }
    changed to:
    public boolean hasFixedDimensions()
    {
      return dimensions != null && !dimensions.isEmpty() && !useSchemaDiscovery && !includeAllDimensions;
    }
    Rename DimensionsSpec#hasCustomDimensions to hasFixedDimensions and change the meaning subtly: it now
    returns true if the DimensionsSpec represents an unchanging list of dimensions, or false if there is
    some discovery happening. This is what call sites had expected anyway.
// existing specified dimensions?
Preconditions.checkArgument(
parseSpec.getDimensionsSpec().hasCustomDimensions(),
parseSpec.getDimensionsSpec().hasFixedDimensions(),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public boolean hasCustomDimensions()
{
   return !(dimensions == null || dimensions.isEmpty());
}

changed to:

public boolean hasFixedDimensions()
{
  return dimensions != null && !dimensions.isEmpty() && !useSchemaDiscovery && !includeAllDimensions;
}

"Rename DimensionsSpec#hasCustomDimensions to hasFixedDimensions and change the meaning subtly: it now
returns true if the DimensionsSpec represents an unchanging list of dimensions, or false if there is
some discovery happening. This is what call sites had expected anyway."

@Sybrand
Sybrand requested a review from AbbyBeeler December 13, 2024 08:59
@Sybrand
Sybrand marked this pull request as ready for review December 13, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant