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

Feature/nested: Nested tuple support #2582

Merged
merged 86 commits into from
Sep 16, 2020
Merged

Feature/nested: Nested tuple support #2582

merged 86 commits into from
Sep 16, 2020

Conversation

markheger
Copy link
Member

resolves #1679

markheger and others added 18 commits September 14, 2020 17:09
test cases for list and map in deep nested tuple schemas
code gen updated for nested types
resolve test_py_source_tuple_list_nested_tuple_spl_sink
test cases for list and map in deep nested tuple schemas, SPL->Py
resolve test_py_source_tuple_tuple_list_nested_tuple_spl_sink
update codegen py2spl for map nested in nested tuple
@markheger markheger requested a review from a user September 15, 2020 16:34
@markheger markheger changed the title Feature/nested Feature/nested: Nested tuple support Sep 15, 2020
@markheger
Copy link
Member Author

ant clean all; cd test/python/; ant test.standalone

     [exec] ----------------------------------------------------------------------
     [exec] Ran 86 tests in 2930.718s
     [exec] OK (skipped=1)

BUILD SUCCESSFUL
Total time: 48 minutes 53 seconds

@@ -309,6 +309,15 @@ def _attribute_names(types):
def _attribute_pytypes(types):
pytypes = []
for attr in types:
#if isinstance(attr[0], tuple):
Copy link

Choose a reason for hiding this comment

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

can be removed

assert(False == res) # expected result: test failed
print ('-C- unsupported type check: PASSED')

def _test_spl_source_list_of_tuple_named_tuple_py_sink(self):
Copy link

Choose a reason for hiding this comment

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

_test_spl_source_list_of_tuple_named_tuple_py_sink(self):

This test case is hidden, but should test a supported scenario.

Copy link
Member Author

Choose a reason for hiding this comment

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

callable returns named tuple not dict, that is the difference
restrictions to named tuple objects needs to be mentioned

@markheger
Copy link
Member Author

some named tuple cases needs to reviewed in beta phase of the release

@markheger markheger merged commit 5aca467 into develop Sep 16, 2020
@markheger markheger deleted the feature/nested branch October 6, 2020 06:53
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.

Nested tuple: Support tuple as attribute type.
1 participant