Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Conversation

ryanmle2001
Copy link

Related to issue #1331

Process:

  • Added STRING_AGG to evadb.lark using LARK grammar per EvaDB new command documentation
  • Define new ExpressionType. AGGREGATION_STRING_AGG enum
  • Add AGGREGATION_STRING_AGG to aggregation_expression evaluate()
  • Define STRING_AGG aggregation in Batch class with error handlers for 1) invalid column input and 2) invalid delimiter
  • Unit tests

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you revert the test.sh change?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the access the permission is still changed. 100644 → 100755

Copy link
Collaborator

@xzdandy xzdandy left a comment

Choose a reason for hiding this comment

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

Thanks for adding the unit tests they look good. I think we also need an integration test where we have the STRING_AGG in a SQL query to verify that it works from end to end.

@ryanmle2001
Copy link
Author

ryanmle2001 commented Nov 28, 2023

Thanks for adding the unit tests they look good. I think we also need an integration test where we have the STRING_AGG in a SQL query to verify that it works from end to end.

Can you send some code pointers on writing an integration test here?

@ryanmle2001 ryanmle2001 reopened this Nov 29, 2023
@xzdandy
Copy link
Collaborator

xzdandy commented Dec 1, 2023

Thanks for adding the unit tests they look good. I think we also need an integration test where we have the STRING_AGG in a SQL query to verify that it works from end to end.

Can you send some code pointers on writing an integration test here?

@ryanmle2001 Here

def test_select_and_groupby_with_paragraphs(self):
is an example, replace the SEGMENT with the STRING_AGG

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants