-
Notifications
You must be signed in to change notification settings - Fork 23
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
Local_Time Conversion error #734
Comments
Hi, In your Instead of |
Hi, I can reproduce the error with this simpler code: from datetime import datetime, date, time
import atoti as tt
session = tt.Session()
table = session.create_table("test", keys=["id"], types={
"id": tt.INT,
"datetime": tt.LOCAL_DATE_TIME,
"date": tt.LOCAL_DATE,
"time": tt.LOCAL_TIME
})
cube = session.create_cube(table)
l, m = cube.levels, cube.measures
table += (1, datetime(2023, 1, 24, 16, 57, 0), date(2023, 1, 24), time(16, 57, 0))
table.head()
# datetime date time
# id
# 1 2023-01-24 16:57:00 2023-01-24 0 days 16:57:00 When I look at the Arrow table created to transfer the row from Python to the atoti server, I get this:
so the types are right but something goes wrong after since I also get wrong data from the server in the pivot table: The issue also occurs with a query launched from Python: cube.query(m["contributors.COUNT"], levels=[l["datetime"], l["time"]])
# contributors.COUNT
# datetime time
# 2023-01-24T16:57 61020000000000 1 This is tracked in an internal ticket, I'll let you know when this is fixed. |
Hi! I'm doing some tests, and when I try to convert a String format variable to LocalTime, when you insert it into the table it looks correct, but if you view it from the dashboard it doesn't.
However, when the variable is read from a CSV file, it is displayed correctly in both the table and the dashboard.
Is it possible that I am doing the process of passing from String to LocalTime wrong? It inserts it correctly into the table, but it doesn't work correctly
Steps to reproduce
If from Atoti, I read a CSV that contains a LocalTime field and when reading the CSV I indicate that this field is LocalTime, it works correctly
If I do a logs.head() it works correctly and in the dashboard too...
But if I try to pass to an endpoint, a String to LocalTime transforms it correctly and inserts it correctly in the Logs table:
But if I check the dashboard, it doesn't show the same as the table.
Actual Result
Expected Result
Environment
Logs (if relevant)
The text was updated successfully, but these errors were encountered: