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

[API-700] v5 SQL: Initial PR #456

Merged
merged 2 commits into from
Aug 31, 2021
Merged

[API-700] v5 SQL: Initial PR #456

merged 2 commits into from
Aug 31, 2021

Conversation

mdumandag
Copy link
Contributor

This is an initial PR for the v5 SQL. It consists minimal changes
required to test the v5 SQL. Follow up PRs will come after that.

Here are the list of changes made:

  • Set client version to 5.0
  • Update remote controller scripts so that it uses hazelcast+hazelcast-sql
    JARs instead of hazelcast-all, since hazelcast-all is not produced anymore.
    Also, update some documentation about it.
  • Use ints to represent years in DATE column type
  • Use built-in types for DATE, TIME, TIMESTAMP, TIMESTAMP WITH TIMEZONE, and DECIMAL
    which are datetime.date, datetime.time, datetime.datetime,
    datetime.datetime(with non-None tzinfo), and decimal.Decimal.
  • Update SQL tests and add some Jet tests
  • Fix distributed objects tests by filtering internal objects out.

This is an initial PR for the v5 SQL. It consists minimal changes
required to test the v5 SQL. Follow up PRs will come after that.

Here are the list of changes made:

- Set client version to 5.0
- Update remote controller scripts so that it uses hazelcast+hazelcast-sql
JARs instead of hazelcast-all, since hazelcast-all is not produced anymore.
Also, update some documentation about it.
- Use ints to represent years in DATE column type
- Use built-in types for DATE, TIME, TIMESTAMP, TIMESTAMP WITH TIMEZONE, and DECIMAL
which are datetime.date, datetime.time, datetime.datetime,
datetime.datetime(with non-None tzinfo), and decimal.Decimal.
- Update SQL tests and add some Jet tests
- Fix distributed objects tests by filtering internal objects out.
@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2021

Codecov Report

Merging #456 (c6dd934) into master (f05112e) will decrease coverage by 0.24%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #456      +/-   ##
==========================================
- Coverage   94.45%   94.21%   -0.25%     
==========================================
  Files         345      345              
  Lines       17545    17535      -10     
==========================================
- Hits        16572    16520      -52     
- Misses        973     1015      +42     
Impacted Files Coverage Δ
hazelcast/sql.py 97.43% <ø> (ø)
hazelcast/__init__.py 60.00% <100.00%> (ø)
hazelcast/protocol/builtin.py 94.45% <100.00%> (-0.13%) ⬇️
...otocol/codec/client_authentication_custom_codec.py 50.00% <0.00%> (-23.81%) ⬇️
hazelcast/reactor.py 79.56% <0.00%> (-7.55%) ⬇️
hazelcast/connection.py 90.67% <0.00%> (-1.64%) ⬇️
hazelcast/invocation.py 92.72% <0.00%> (-0.39%) ⬇️
hazelcast/core.py 94.48% <0.00%> (ø)
hazelcast/proxy/map.py 89.17% <0.00%> (+0.34%) ⬆️
hazelcast/security.py 92.85% <0.00%> (+0.54%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f05112e...c6dd934. Read the comment docs.

@srknzl
Copy link
Contributor

srknzl commented Aug 25, 2021

Will there be documentation and code samples PRs after this?

@srknzl srknzl self-requested a review August 25, 2021 10:38
@mdumandag
Copy link
Contributor Author

@srknzl, yes I will send them in a separate PR

@mdumandag mdumandag changed the title [API-628] v5 SQL: Initial PR [API-700] v5 SQL: Initial PR Aug 26, 2021
Copy link
Contributor

@srknzl srknzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Some minor comments:

tests/base.py Show resolved Hide resolved
tests/integration/backward_compatible/sql_test.py Outdated Show resolved Hide resolved
@mdumandag mdumandag merged commit 3e9bda8 into hazelcast:master Aug 31, 2021
@mdumandag mdumandag deleted the sql-v5 branch August 31, 2021 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants