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

flat_map: support conversion of SPL tuple to/from dictionary (named tuple) #2486

Closed
markheger opened this issue Jun 16, 2020 · 1 comment · Fixed by #2487
Closed

flat_map: support conversion of SPL tuple to/from dictionary (named tuple) #2486

markheger opened this issue Jun 16, 2020 · 1 comment · Fixed by #2487

Comments

@markheger
Copy link
Member

markheger commented Jun 16, 2020

Involved operator code: com.ibm.streamsx.topology.functional.python/FlatMap

Primitive operator does provide different code block for various types (python object/dict/named tuple) like source, map, aggregate.

@markheger
Copy link
Member Author

current code results in following error when using type hints (named tuple as output style)

src/operator/flatten_flat_map.cpp: In member function \u2018virtual void SPL::_Operator::flatten_flat_map$OP::process(const SPL::Tuple&, uint32_t)\u2019:
src/operator/flatten_flat_map.cpp:130:41: error: \u2018SPL::_Operator::flatten_flat_map_Base::OPort0Type\u2019 has no member named \u2018get___spl_po\u2019
           pySplValueFromPyObject(otuple.get___spl_po(), item);
                                         ^
make: *** [build/operator/flatten_flat_map.o] Error 1

markheger pushed a commit to markheger/streamsx.topology that referenced this issue Jun 18, 2020
markheger pushed a commit to markheger/streamsx.topology that referenced this issue Jun 18, 2020
markheger pushed a commit to markheger/streamsx.topology that referenced this issue Jun 18, 2020
markheger pushed a commit to markheger/streamsx.topology that referenced this issue Jun 18, 2020
@markheger markheger added the bug label Jun 19, 2020
@markheger markheger changed the title flat_map: Optimize conversion of SPL tuple to/from dictionary (named tuple) flat_map: support conversion of SPL tuple to/from dictionary (named tuple) Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant