-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Metadata Storage extension for Microsoft SqlServer (sqlserver-metadata-storage) #3421
Conversation
Thanks @mark1900 ! |
awesome! |
@mark1900 these all need appropriate copyright headers. Check out the other files in druid to see the correct POM and JAVA headers |
private static final String PAYLOAD_TYPE = "VARBINARY(MAX)"; | ||
private static final String SERIAL_TYPE = "[int] IDENTITY (1, 1)"; | ||
|
||
public static final int DEFAULT_STREAMING_RESULT_SIZE = 100; |
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.
Is there anywhere in MsSql you can point to that verifies this setting? such a thing would be nice in a comment.
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.
Will add code comments in relation to this. On a closer look, I just noticed that I should have used a [bigint] instead of a [int] for the SERIAL_TYPE.
832120a
to
94e2d4b
Compare
@mark1900 this needs docs in https://github.com/druid-io/druid/tree/master/docs/content/development/extensions-contrib . Make sure to mention #3421 (comment) since this PR (unlike the other metadata extensions) does not package the driver's jar by default. |
94e2d4b
to
7495ac1
Compare
@drcrallen Added documentation (sqlserver.md) |
Cool, @mark1900 can you please fill out the CLA at http://druid.io/community/cla.html ? 👍 after that |
|
||
# Microsoft SQLServer | ||
|
||
Make sure to [include](../../operations/including-extensions.html) `sqlserver-metadata-storage` as an extension. |
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.
Mentioned in dev-sync today, can you please link to this doc under https://github.com/druid-io/druid/blob/master/docs/content/development/extensions.md in the contrib section?
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.
@drcrallen Updated extensions.md
to link to this new extension.
CLA is good |
7495ac1
to
8909385
Compare
Cool, still 👍 |
Some comments from the JDBI Google Group, on the
|
8909385
to
e9c9a04
Compare
In response to the previous comments. While the current sql transformation might be affected by future sql changes, since Druid's use of SQL is pretty straight forward, the current approach should be sufficient for now. Also, for better performance I have updated the SQLServerConnector to reuse the sql rewriting patterns. |
private static final Pattern REWRITE_PATTERN6 = Pattern.compile("(?i)TRUE"); | ||
private static final Pattern REWRITE_PATTERN7 = Pattern.compile("(?i)FALSE"); | ||
|
||
private ColonPrefixNamedParamStatementRewriter colonPrefixNamedParamStatementRewriter = |
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.
formatting in this file got all weird
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.
@drcrallen Updated
e9c9a04
to
cc9fcba
Compare
cc9fcba
to
bc8dfef
Compare
👍 |
Currently I use this custom extension by adding the required libraries to my Druid classpath (druid/lib/).
Based on: