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

[BUG]: MessageMeta.copy_dataframe() renames keys in array[dict] columns #1549

Closed
2 tasks done
dagardner-nv opened this issue Mar 6, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@dagardner-nv
Copy link
Contributor

dagardner-nv commented Mar 6, 2024

Version

24.03

Which installation method(s) does this occur on?

Source

Describe the bug.

Happens when C++ mode is enabled

Minimum reproducible example

import cudf

from morpheus.config import CppConfig
from morpheus.messages import MessageMeta

def test():
    data = {'checklist': [{'question': 'q1', 'response': 'r1'},  {'question': 'q2', 'response': 'r2'}]}

    df = cudf.DataFrame(data)
    m = MessageMeta(df)

    print(f"\nmessage.copy_dataframe()\n{m.copy_dataframe()}")


CppConfig.set_should_use_cpp(False)
print("C++ Disabled")
test()

CppConfig.set_should_use_cpp(True)
print("C++ Enabled")
test()

Relevant log output

C++ Disabled

message.copy_dataframe()
                              checklist
0  {'question': 'q1', 'response': 'r1'}
1  {'question': 'q2', 'response': 'r2'}
C++ Enabled

message.copy_dataframe()
                 checklist
""                        
0   {'0': 'q1', '1': 'r1'}
1   {'0': 'q2', '1': 'r2'}

Full env printout

Click here to see environment details

[Paste the results of print_env.sh here, it will be hidden by default]

Other/Misc.

No response

Code of Conduct

  • I agree to follow Morpheus' Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report
@dagardner-nv dagardner-nv added the bug Something isn't working label Mar 6, 2024
@dagardner-nv
Copy link
Contributor Author

Duplicate of #1527

@dagardner-nv dagardner-nv marked this as a duplicate of #1527 Mar 6, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Morpheus Boards Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant