daphne-eu / daphne

DAPHNE: An Open and Extensible System Infrastructure for Integrated Data Analysis Pipelines
Apache License 2.0
67 stars 62 forks source link

[DAPHNE-#357] typeOf() function to determine the type of an object #763

Closed Garic152 closed 2 months ago

Garic152 commented 5 months ago

This PR implements https://github.com/daphne-eu/daphne/issues/357 and allows the user to determine the type of a Scalar or Object in DAPHNE DSL-Scrips using the typeOf() built-in function.

Features:

Changes:

Garic152 commented 4 months ago

Thank you for reviewing the code, I totally overlooked the fact that the frames were able to contain multiple value types. I changed the typeOf(frame) kernel to now iterate over the columns of the frame and return the result formatted like the print() function. I also adjusted the existing tests and added another line testing the newly added functionality with all supported types in one frame.

Let me know if there are still some things missing and I'll add them as soon as possible!

AlexRTer commented 4 months ago

Thank you for implementing all requested changes and in such a short time frame as well. From my point of view, this PR is ready to be merged.