-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Open
mitchwadair
wants to merge
51
commits into
drizzle-team:beta
Choose a base branch
from
singlestore-labs:feature/new-dialect-singlestore
base: beta
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[SingleStore] Add SingleStore connector #3132
mitchwadair
wants to merge
51
commits into
drizzle-team:beta
from
singlestore-labs:feature/new-dialect-singlestore
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
Rodriguespn
force-pushed
the
feature/new-dialect-singlestore
branch
2 times, most recently
from
October 16, 2024 00:36
86aa47e
to
78db5cf
Compare
Rodriguespn
force-pushed
the
feature/new-dialect-singlestore
branch
from
October 23, 2024 17:05
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
Rodriguespn
force-pushed
the
feature/new-dialect-singlestore
branch
from
November 7, 2024 19:44
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