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

Support arrays of arrays #66

Merged

Conversation

engineerjoe440
Copy link
Collaborator

Related Issues

Changes

  • Allow arrays to consist of arrays to support indeterminate nesting (I don't know if there's a compiler-imposed limit, but it certainly makes sense there would be a behavioral limit).
  • Add relevant tests to confirm behavior.

Closing Thoughts

I think this one should be pretty simple. I'm thankful for that! No rush to get this merged in (please enjoy your time away and don't review until you return).

@codecov-commenter
Copy link

codecov-commenter commented Apr 20, 2023

Codecov Report

Merging #66 (dddb876) into master (4ea1ea0) will decrease coverage by 0.3%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #66     +/-   ##
========================================
- Coverage    72.7%   72.5%   -0.3%     
========================================
  Files          18      18             
  Lines        3814    3816      +2     
========================================
- Hits         2774    2767      -7     
- Misses       1040    1049      +9     
Impacted Files Coverage Δ
blark/tests/test_transformer.py 94.4% <ø> (ø)
blark/transform.py 99.0% <100.0%> (+<0.1%) ⬆️

... and 1 file with indirect coverage changes

@klauer klauer linked an issue May 8, 2023 that may be closed by this pull request
Copy link
Owner

@klauer klauer left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks as usual, @engineerjoe440.

I'll merge and then we can move over to the other PR.

@@ -1175,6 +1175,8 @@ def base_type_name(self) -> Union[str, lark.Token]:
"""The base type name."""
if isinstance(self.type, DataType):
return self.type.type_name
if isinstance(self.type, ArraySpecification):
return self.type.base_type_name
Copy link
Owner

Choose a reason for hiding this comment

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

Glad you caught this one and added the test! 👍

@klauer klauer merged commit 3a681c4 into klauer:master May 8, 2023
@engineerjoe440 engineerjoe440 deleted the bugfix/support-arrays-of-arrays branch May 8, 2023 22:15
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.

Fail to Parse Array of Arrays
3 participants