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

feat: get scalar function invocation object from testcase #91

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

scgkiran
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 92.72727% with 4 lines in your changes missing coverage. Please review.

Project coverage is 62.19%. Comparing base (21ed05f) to head (97de653).

Files with missing lines Patch % Lines
testcases/parser/nodes.go 92.72% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
+ Coverage   62.01%   62.19%   +0.17%     
==========================================
  Files          44       44              
  Lines        9844     9898      +54     
==========================================
+ Hits         6105     6156      +51     
- Misses       3462     3464       +2     
- Partials      277      278       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}

func (tc *TestCase) signatureKey() string {
if tc.FuncType == ScalarFuncType {
Copy link
Member

Choose a reason for hiding this comment

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

Consider using a switch statement here so that when support for window is added it is handled instead of returning aggregate.


func (tc *TestCase) ID() extensions.ID {
baseURI := tc.BaseURI
if !strings.HasPrefix(baseURI, "https") || !strings.HasPrefix(baseURI, "http") {
Copy link
Member

Choose a reason for hiding this comment

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

This check is being used to check that the URI is not a slash-prefixed file. So it could check for the prefix being a leading slash. Otherwise a check for a leading slash could be useful before appending it onto the Substrait default address.

@EpsilonPrime EpsilonPrime merged commit a3c9f73 into substrait-io:main Dec 16, 2024
4 of 6 checks passed
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.

2 participants