Edgar Melendrez
64a4d115c5
[Docs] adding admonition for div ( #17093 )
...
Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
2024-09-17 13:54:49 -07:00
Lasse Mammen
307b8e3357
feat: json_merge expression and sql function ( #17081 )
2024-09-17 18:27:34 +05:30
Edgar Melendrez
48a758ee08
[docs] reverting changes for sql-functions.md ( #17019 )
2024-09-06 16:07:32 -07:00
Edgar Melendrez
2d9e92ce78
[docs] Batch11 date and time functions ( #16926 )
...
* first draft of functions
* minor improvments
* Update docs/querying/sql-functions.md
* Update docs/querying/sql-scalar.md
* Apply suggestions from code review
Accepted as is
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* applying next round of suggestions
* fixing missing column name
* addressing floor and ceil functions
* Apply suggestions from code review
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* re-wording TIMESTAMPADD
---------
Co-authored-by: Benedict Jin <asdf2014@apache.org>
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
2024-09-06 12:20:47 -07:00
Edgar Melendrez
ed811262e3
[docs] Batch13 IP functions ( #16947 )
...
* new datasource
* reviewing before pr
* Update docs/querying/sql-functions.md
* Apply suggestions from code review
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* Applying suggestions to IPV4_PARSE
---------
Co-authored-by: Benedict Jin <asdf2014@apache.org>
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
2024-09-06 12:19:36 -07:00
Edgar Melendrez
c49dc83b22
[docs] batch 12: reduction functions ( #16930 )
...
* [docs] batch 12: reduction functions
* Update docs/querying/sql-functions.md
* Update docs/querying/sql-functions.md
* Update docs/querying/sql-functions.md
* applying suggestions
* Apply suggestions from code review
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
---------
Co-authored-by: Benedict Jin <asdf2014@apache.org>
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
2024-09-05 17:02:45 -07:00
Edgar Melendrez
c4981e34c4
[docs] Batch10 date and time functions ( #16900 )
...
* just starting
* TIME_PARSE and TIME_FORMAT remaining
* fixing typo
* adding last two functions
* review sql-functions.md
* Apply suggestions from code review
Suggestions that were accepted as is
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* Update docs/querying/sql-functions.md
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* Update docs/querying/sql-functions.md
needed to confirm that it did indeed return as a number
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* reviewing remaining suggestions
* addressing review for time_format
* Apply suggestions from code review
Accepted as is
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* addressing final suggestion
* time_zone -> timezone
* timezone fix
---------
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
2024-08-22 20:25:27 -07:00
Edgar Melendrez
fda2d19b88
[Docs] Batch09: only `lookup` ( #16878 )
...
* [Docs] Batch09: only `lookup`
* slight changes
* Apply suggestions from code review
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* applying suggestiontions
* Apply suggestions from code review
Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
* otherwise null -> otherwise returns null
* updating definition in sql-scalar.md
* Apply suggestions from code review
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* hoping to re-run web checks
* change replaceMissingValueWith -> defaultValue
* Update docs/querying/sql-scalar.md
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
* acronym_to_name -> airportcode_to_name
* shortens `airportcode_to_name` to `code_to_name`
---------
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
2024-08-22 11:11:16 -07:00
Edgar Melendrez
725695342c
[Docs] Batch07: adding examples to string functions ( #16862 )
...
* Lower,Upper,Lpad,Rpad,Parse_long
* up to REGEXP_EXTRACT
* batch 07 ready for review
* updated definitions in scalar
* Apply suggestions from code review
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* rpad and lpad
* addressing comments
* minor fixes
* improving examples based on suggestions
* matched -> matches
* correcting typo
* Apply suggestions from code review
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
---------
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
2024-08-21 15:08:25 -07:00
Edgar Melendrez
5b94839d9d
[Docs] Batch08: adding examples to string functions ( #16871 )
...
* batch08 completed
* reviewing batch08
* apply corrections suggestions by @FrankChen021
2024-08-16 10:15:30 +08:00
Edgar Melendrez
ebea34a814
[Docs] Batch06: starting string functions ( #16838 )
...
* batch06, starting string functions
* addind space after Syntax
* quick change
* correcting spelling
* Update docs/querying/sql-functions.md
* Update sql-functions.md
* applying suggestions
* Update docs/querying/sql-functions.md
* Update docs/querying/sql-functions.md
---------
Co-authored-by: Benedict Jin <asdf2014@apache.org>
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
2024-08-06 11:32:26 -07:00
Edgar Melendrez
3bb6d40285
[docs] batch 5 updating functions ( #16812 )
...
* batch 5
* Update docs/querying/sql-functions.md
* applying suggestions
---------
Co-authored-by: Benedict Jin <asdf2014@apache.org>
2024-07-30 17:30:01 -07:00
Edgar Melendrez
85a8a1d805
[Docs]Batch04 - Bitwise numeric functions ( #16805 )
...
* Batch04 - Bitwise numeric functions
* Batch04 - Bitwise numeric functions
* minor fixes
* rewording bitwise_shift functions
* rewording bitwise_shift functions
* Update docs/querying/sql-functions.md
* applying suggestions
---------
Co-authored-by: Benedict Jin <asdf2014@apache.org>
2024-07-30 10:53:59 -07:00
Edgar Melendrez
028ee23a1e
[Docs] batch 03 - trig functions ( #16795 )
...
* batch 03 - trig functions
* Apply suggestions from code review
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
* applying suggestions and corrections
---------
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
2024-07-26 13:11:17 -07:00
Edgar Melendrez
ca787885c9
[docs] batch02 of updating functions ( #16761 )
...
* applying changes
* ensuring batch is updated
* Update docs/querying/sql-functions.md
* raise -> raises
* addressing review
* Apply suggestions from code review
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
---------
Co-authored-by: Benedict Jin <asdf2014@apache.org>
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
2024-07-24 15:28:57 -07:00
Edgar Melendrez
721a65046f
docs: add examples for SQL functions ( #16745 )
...
* updating first batch of numeric functions
* First batch of functions
* addressing first few comments
* alphabetize list
* draft with suggestions applied
* minor discrepency expr -> <NUMERIC>
* changed raises to calculates
* Update docs/querying/sql-functions.md
* switch to underscore
* changed to exp(1) to match slack message
* adding html text for trademark symbol to .spelling
* fixed discrepancy between description and example
---------
Co-authored-by: Benedict Jin <asdf2014@apache.org>
2024-07-18 17:06:22 -07:00
Victoria Lim
836cdb48a5
docs: Migration guide for MVDs to arrays ( #16516 )
...
Co-authored-by: Clint Wylie <cjwylie@gmail.com>
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
Co-authored-by: Benedict Jin <asdf2014@apache.org>
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
2024-06-13 13:05:58 -07:00
Gian Merlino
db82adcdfd
SCALAR_IN_ARRAY: Optimization and behavioral follow-ups. ( #16311 )
...
* Four changes to scalar_in_array as follow-ups to #16306 :
1) Align behavior for `null` scalars to the behavior of the native `in` and `inType` filters: return `true` if the array itself contains null, else return `null`.
2) Rename the class to more closely match the function name.
3) Add a specialization for constant arrays, where we build a `HashSet`.
4) Use `castForEqualityComparison` to properly handle cross-type comparisons.
Additional tests verify comparisons between LONG and DOUBLE are now
handled properly.
* Fix spelling.
* Adjustments from review.
2024-04-26 16:01:17 -07:00
Sree Charan Manamala
ad5701e891
new SCALAR_IN_ARRAY function analogous to DRUID_IN ( #16306 )
...
* scalar_in function
* api doc
* refactor
2024-04-18 21:15:15 -07:00
Charles Smith
3caacba8c5
update window functions doc ( #15902 )
...
Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
2024-03-07 15:16:52 -08:00
Clint Wylie
dad8398a4d
start process of deprecating non-sql compatible legacy configurations ( #15713 )
...
Starting the process to officially deprecate non SQL compatible modes by updating docs to aggressively call out that Druids non SQL compliant modes are deprecated and will go away someday. There are no code or behavior changes at this PR.
2024-02-13 15:31:45 +05:30
Clint Wylie
e8fcf2cac8
minor doc adjustments ( #15531 )
2023-12-11 18:22:44 -08:00
Katya Macedo
fc222377ae
[Docs] Document decode_base64_complex and decode_base64_utf8 functions ( #15444 )
2023-12-11 09:12:06 -08:00
sb89594
5fda8613ad
Feature: Add IPv6 Match Function ( #15212 )
2023-12-07 23:09:06 -08:00
Pranav
93cd638645
Enabling aggregateMultipleValues in all StringAnyAggregators ( #15434 )
...
* Enabling aggregateMultipleValues in all StringAnyAggregators
* Adding more tests
* More validation
* fix warning
* updating asserts in decoupled mode
* fix intellij inspection
* Addressing comments
* Addressing comments
* Adding early validations and make aggregate consistent across all
* fixing tests
* fixing tests
* Update docs/querying/sql-aggregations.md
Co-authored-by: Clint Wylie <cjwylie@gmail.com>
* fixing static check
---------
Co-authored-by: Clint Wylie <cjwylie@gmail.com>
2023-11-29 14:32:49 -08:00
Charles Smith
6a5da5a05e
fix redirect for api docs and misc array-related typos ( #15387 )
...
Co-authored-by: 317brian <53799971+317brian@users.noreply.github.com>
2023-11-16 13:29:19 -08:00
Pranav
f1edd671fb
Exposing optional replaceMissingValueWith in lookup function and macros ( #14956 )
...
* Exposing optional replaceMissingValueWith in lookup function and macros
* args range validation
* Updating docs
* Addressing comments
* Update docs/querying/sql-scalar.md
Co-authored-by: Clint Wylie <cjwylie@gmail.com>
* Update docs/querying/sql-functions.md
Co-authored-by: Clint Wylie <cjwylie@gmail.com>
* Addressing comments
---------
Co-authored-by: Clint Wylie <cjwylie@gmail.com>
2023-10-02 17:09:23 -07:00
Zoltan Haindrich
e806d09309
Allow EARLIEST/EARLIEST_BY/LATEST/LATEST_BY for STRING columns without specifying maxStringBytes ( #14848 )
2023-08-22 22:50:19 -07:00
Clint Wylie
5d1412949e
enable sql compatible null handling mode by default ( #14792 )
...
* enable sql compatible null handling mode by default
* fix bug with string first/last aggs when druid.generic.useDefaultValueForNull=false
2023-08-21 20:07:13 -07:00
317brian
6b4dda964d
Docusaurus2 upgrade for master ( #14411 )
...
Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
2023-08-16 19:01:21 -07:00
Gian Merlino
e10e35aa2c
Add REGEXP_REPLACE function. ( #14460 )
...
* Add REGEXP_REPLACE function.
Replaces all instances of a pattern with a replacement string.
* Fixes.
* Improve test coverage.
* Adjust behavior.
2023-06-29 13:47:57 -07:00
317brian
70952c0977
docs: add sql array functions to nav ( #14361 )
...
* docs: add sql array functions to nav
* fix typo
* add sql array functions to list
* fix spelling errors
2023-06-01 16:45:27 -07:00
317brian
7e572eef08
docs: sql unnest and cleanup unnest datasource ( #13736 )
...
Co-authored-by: Elliott Freis <elliottfreis@Elliott-Freis.earth.dynamic.blacklight.net>
Co-authored-by: Charles Smith <techdocsmith@gmail.com>
Co-authored-by: Victoria Lim <vtlim@users.noreply.github.com>
Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
Co-authored-by: Paul Rogers <paul-rogers@users.noreply.github.com>
Co-authored-by: Jill Osborne <jill.osborne@imply.io>
Co-authored-by: Anshu Makkar <83963638+anshu-makkar@users.noreply.github.com>
Co-authored-by: Abhishek Agarwal <1477457+abhishekagarwal87@users.noreply.github.com>
Co-authored-by: Elliott Freis <108356317+imply-elliott@users.noreply.github.com>
Co-authored-by: Nicholas Lippis <nick.lippis@imply.io>
Co-authored-by: Rohan Garg <7731512+rohangarg@users.noreply.github.com>
Co-authored-by: Karan Kumar <karankumar1100@gmail.com>
Co-authored-by: Vadim Ogievetsky <vadim@ogievetsky.com>
Co-authored-by: Gian Merlino <gianmerlino@gmail.com>
Co-authored-by: Clint Wylie <cwylie@apache.org>
Co-authored-by: Adarsh Sanjeev <adarshsanjeev@gmail.com>
Co-authored-by: Laksh Singla <lakshsingla@gmail.com>
2023-04-04 13:07:54 -07:00
frankgrimes97
2f98675285
Tuple sketch SQL support ( #13887 )
...
This PR is a follow-up to #13819 so that the Tuple sketch functionality can be used in SQL for both ingestion using Multi-Stage Queries (MSQ) and also for analytic queries against Tuple sketch columns.
2023-03-28 18:47:12 +05:30
Clint Wylie
f8097ccfaa
basic docs for nested column query functions ( #12922 )
...
* basic docs for nested column query functions
2022-08-19 17:12:19 -07:00
Victoria Lim
d8f8c56f94
Docs: Index page with all SQL functions ( #12771 )
...
* list of all functions
* add function names to spelling file
2022-07-14 09:59:55 +08:00