Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segment metadata query on tombstone #15

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

findingrish
Copy link
Owner

No description provided.

@findingrish findingrish changed the title Segment metadata queries on tombstones Segment metadata query on tombstone Aug 12, 2024
@@ -120,7 +123,6 @@ public ColumnHolder getColumnHolder(String columnName)
{
throw new UnsupportedOperationException();

Choose a reason for hiding this comment

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

Should this also return an empty or null column holder?

Comment on lines +378 to +384
FACTORY.mergeRunners(
Execs.directExecutor(),
Lists.newArrayList(
toolChest.preMergeQueryDecoration(runner1),
toolChest.preMergeQueryDecoration(runner2)
)
)

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
QueryRunnerFactory.mergeRunners
should be avoided because it has been deprecated.
.merge(true)
.build();

List<SegmentAnalysis> list = myRunner.run(QueryPlus.wrap(query)).toList();

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'List list' is never read.
}

@Override
public Map<String, DimensionHandler> getDimensionHandlers()
{
throw new UnsupportedOperationException();
return new HashMap<>();

Choose a reason for hiding this comment

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

maybe Collections.emptyMap() so it doesn't create garbage

@@ -111,7 +114,7 @@ public void close()
@Override
public List<String> getColumnNames()
{
throw new UnsupportedOperationException();
return new ArrayList<>();

Choose a reason for hiding this comment

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

Collections.emptyList()

@Override
public RowSignature getRowSignature()
{
return RowSignature.builder().build();

Choose a reason for hiding this comment

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

should create a static final empty signature to re-use for all tombstones

Copy link

This pull request has been marked as stale due to 60 days of inactivity.
It will be closed in 4 weeks if no further activity occurs. If you think
that's incorrect or this pull request should instead be reviewed, please simply
write any comment. Even if closed, you can still revive the PR at any time or
discuss it on the dev@druid.apache.org list.
Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants