-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
[SingleStore] Add SingleStore connector #3132
Merged
AndriiSherman
merged 51 commits into
drizzle-team:beta
from
singlestore-labs:feature/new-dialect-singlestore
Dec 2, 2024
Merged
[SingleStore] Add SingleStore connector #3132
AndriiSherman
merged 51 commits into
drizzle-team:beta
from
singlestore-labs:feature/new-dialect-singlestore
Dec 2, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86aa47e
to
78db5cf
Compare
78db5cf
to
b813ee5
Compare
Starting my review today |
I'll resolve conflicts while doing my review, so no action is needed from your side |
…to feature/new-dialect-singlestore
…to feature/new-dialect-singlestore
Added query header for future logging of integration usage
Using database for tests and remove datetime and json from singlestore allTypes test on push
Added query header for future logging of integration usage
Using database for tests and remove datetime and json from singlestore allTypes test on push
feb0e60
to
e9db7f1
Compare
…ore-labs/s2-drizzle-orm-dev into feature/new-dialect-singlestore
…to feature/new-dialect-singlestore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR intends to add SingleStore support to Drizzle ORM. SingleStore is a distributed SQL database that unifies both transactional and analytical workloads. It is largely compatible with MySQL, but there are some incompatibilities and additional features that are supported.
Key differences between MySQL vs SIngleStore Integration Tests
serial
column type only assures uniqueness of the column values. The tests were modified to (set operation tests in particular) to expect SingleStore-specific behavior, by adding anORDER BY
instruction to every select instruction.ORDER BY
andLIMIT
cannot be chained together.intersectAll
andexceptAll
tests since these operations are not supported by SIngleStoreisolationLevel
config and tests as singlestore only supports oneisolationLevel
Tests results for SingleStore
Drizzle-kit
tests resultDrizzle-orm
tests resultDrizzle-orm
type tests resultIntegration-tests
resultsSide notes
There are some SingleStore-specific operations, such as
attach/detach
,create/drop milestone
andoptimizeTable
for column stores tables, that are implemented ondrizzle-orm/src/singlestore-core
but not ondrizzle-kit
. There are also no integration tests for these operations. This is a known issue and should be fixed in the upcoming releases.The relational tests that included nested selects with aggregations functions were skipped since SingleStore doesn't support it