Skip to content

Conversation

@mail4umar
Copy link
Collaborator

Previously, we never encountered namespace issue for QueryProfiler.

But it turns out that Eon mode has namespaces. The current function schema_relation which is used inside the get_qplan_tree would give an error if a relation name like "name_space.schema.table" was provided. Now, I have added a handling for such a case.

The function schema_relation would return below for the case of "name_space.schema.table":

schema = 'name_space.table'
relation_name = 'table'

@mail4umar mail4umar added Bug Something isn't working. Performance QPROF, ... or anything related to query performance. labels Mar 17, 2025
@mail4umar mail4umar self-assigned this Mar 17, 2025
)
if rel_transf.split('"')[2] != ".":
raise ParsingError("The format of the input relation is incorrect.")
elif quote_nb == 0 and dot_nb == 2:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please add a unit test for this case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We previously did not have any unit tests. I have added unit tests for all cases.

@mail4umar mail4umar requested a review from afard March 17, 2025 14:47
@mail4umar mail4umar merged commit f485345 into vertica:master Mar 18, 2025
9 checks passed
@mail4umar mail4umar deleted the bugfix_namespace branch September 9, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working. Performance QPROF, ... or anything related to query performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants