-
Notifications
You must be signed in to change notification settings - Fork 82
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 for temporal types in graphical query builder #191
Comments
Hi! @vogti can I work on this issue ? |
Yes, of course! It would be great if you can take care of this. |
@earthshakira I forgot to mention something (and hope you are not already frustrated due to this). You might be wondering why the system does not calculate statistics for newly added tables. This is currently disabled at default. We are currently working on a new workload monitoring which also integrates the statistics module more efficiently. For the time being you can either enable To make it easier for you to trigger a recalculation, I have attached a patch which adds a button to |
@vogti Thanks for the patch helps a lot ✌ |
Hi @earthshakira, is everything working fine? If you have any issues or need help getting started, please do not hesitate to either ask here or open a thread in the discussion forum. |
@vogti sorry, I was busy with some college work so it's taking extra time, extremely sorry for the delay |
No worries. There is no need to hurry. I just wanted to ask if you need any assistance. I am already looking forward to your pull request :) |
Hi @vogti thanks for the patch, it's really really helpful. For the temporal types I have chosen It's working for most of the part, The problem it's having is since all of these types give a Long value for but it doesn't work for cases like the API call bar: {columnType: "temporal", min: "18724", max: "18724", schema: "public", table: "temporal_tests", …}
foo: {columnType: "temporal", min: "1618056000000", max: "1618056000000", schema: "public", table: "temporal_tests", …}
foobar: {columnType: "temporal", min: "43200000", max: "43200000", schema: "public", table: "temporal_tests", …} since this directly serializes the map also in other parts of the UI where this is used since we don't know the exact type(DATE,TIMESTAMP or TIME) is not known, I couldn't find a good way how it would be converted to time strings in UI Note: Please do help me. Thanks again for the Recalculate Button. |
Hey @earthshakira I hope I understood your question correctly and this helps. |
Hi! @datomo, I tried implementing the solution, it works fine from the backend, but it's adding additional complexity on the UI side as we need to include the methods for parsing the datetime strings. is this a bad way to deal with this issue ? Please Guide me on this. Thanks |
Sadly this does not really work, when using Gson, as we do, to seralize the map with all the Those you could then enable by adding them in the But you could try a different approach.
In the frontend you would then be able to test and access the "print" field if you have one of your special columns. I hope this helps, feel free to report back. |
Hi!, Please check #339, since the temporal types are always having a string representation, I'm changing their representation from Number into TimeStamp format using the util helper when |
While I think the the transformation to TimeStamp should not be a problem, you would need to take some precautions when creating your TemporalStasticColumns from the new data. Not all input data of a PolyType has to be the same underlying Java type, but you should be able to transform it rather easily. You would need to make sure that you only insert it as Longs, so for one your interal logic works as expected and for another that your transformations work correctly. |
Hi! have implemented the parsing logic, so only Longs get parsed and the other types don't, please check |
The graphical query builder only supports building conditions for numerical and character types. Adding support for temporal types requires extending to the statistics manager in Polypheny-DB (
org/polypheny/db/statistic/StatisticsManager.java
) and the corresponding component in the Polypheny-UI.The text was updated successfully, but these errors were encountered: