-
Notifications
You must be signed in to change notification settings - Fork 49
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 crate 4.x #300
support crate 4.x #300
Conversation
@chicco785 it looks like you've added these changes on top of PR #299. We should freeze this PR until we merge PR #299 into master, then rebase this PR onto master to avoid version control nightmares :-) For the rest it looks like a very good start. What happens if you re-enable all reporter tests? Talking about this change:
|
yep, the idea was to rebase after merging the log one, locally i already re-enabled all report tests. i disable to focus on the troublesome ones |
I reported the Union all "bug" in crate github crate/crate#9854 |
I see you've rebased the branch, good stuff, thanks!
cool bananas, just wanted to make sure the change was intentional :-)
that's great, thanks! |
@c0c0n3 i also improved the backward compatibility test, so we are able to test also database upgrade, and to test it across different combination of quantumleap and crate. see |
https://travis-ci.org/github/smartsdk/ngsi-timeseries-api/jobs/671718649?utm_medium=notification&utm_source=github_status highlights that query behaviour between crate versions in inconsistent A theory could be that the order of result - in absence of order by - depends on the order of consolidation by crate (and not on the order of insertion). |
That seems the most sensible thing to do at the moment. I opened #306 as a reminder to follow up on the Crate issue and possibly revert back to ordering the result set.
That's fantabulous, thanks!
Yes probably. Since those tables don't have a PK, perhaps we get an implicit one with an associated index and results get output in index traversal order. But that's just a wild guess! |
Also, I'd update |
@c0c0n3 all test are passing |
@@ -204,7 +206,7 @@ def _insert_entities_of_type(self, | |||
msg = "Translating entity without TIME_INDEX. " \ | |||
"It should have been inserted by the 'Reporter'. {}" | |||
warnings.warn(msg.format(e)) | |||
now_iso = datetime.now().isoformat(timespec='milliseconds') | |||
now_iso = datetime.utcnow().isoformat(timespec='milliseconds') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@c0c0n3 this ensure that also when not timeindex is inserted, we use utc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excellent thanks!
00ff168
to
b2775eb
Compare
* support backward compatibility tests with different crate versions * improve health test (return better error when cratedb cannot be reached) * sort table_name to ensure that tables are always queried in the same order * diffenrentiate dev compose and deploy compose * update travis to comply with new spec * clean docker compose * Hack test_NTNE.py due to ordering issue * update documentation listing Crate 4.x as experimental support
@c0c0n3 unless there is anything else, this PR should be ready to land |
@chicco785 excellent, merged in! |
fix #256
@c0c0n3 three test are failing.
test_NTNE_limit
probably because the query is actually wrongtest_NTNE_offset
may be actually a crate bug. i run the query manually and it seems that crate 4.x is not handling correctlyoffset
when using it with an aggregate query (at least if in a union all select)test_bc
well of course moving to crate 4.x it's not backward compatible with ql 0.5.1