Clone Tools
  • last updated 20 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[NO ISSUE] Fix bug to block illegal inverted index

Fix bug to block inverted index creation with a variable-length primary

key (e.g. string as the primary key). Currently, we don't support such

an inverted index in this case.

Change-Id: I715d55d48246fd08817b72f7104bc4d436578600

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7523

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Ian Maxon <imaxon@uci.edu>

  1. … 2 more files in changeset.
[ASTERIXDB-2762] Fix str_to_codepoint() and codepoint_to_str()

This commit aims to fix bugs in the two functions.

Previously, for surrogate-pair characters (those who have 4 bytes

or 2 Java chars in UTF-16 instead of 2 bytes or 1 Java char)

the two functions didn't work fine.

The code point of such a character was an integer pair (due to two Java

chars in the encoding) instead of one integer, and this was not expected.

Change-Id: I93563b90e8d4f77886e1cb3ed67519fd0968c95d

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7306

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

  1. … 5 more files in changeset.
[ASTERIXDB-2762] Use code point as unit in position()

Change-Id: Icf1b8b3401599e4332dd09534bdf4787cd9d85d6

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7305

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

  1. … 11 more files in changeset.
[ASTERIXDB-2762] Count code points in string length()

This commit aims to let the string length() built-in function to count

the number of code points instead of the number of Java Chars in a string.

Change-Id: I3ff25840adc94b4a688c53a06816d5934c6418ad

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7304

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

  1. … 6 more files in changeset.
[NO ISSUE][COMP] Improve error message when function not found

Details:

- Remove arity from the error message raised when

the function is not found

- Also remove "null." prefix from that message if

the function call did not specify a dataverse

Change-Id: I384ca2af87078e72aab23dccd3651a8edf02a3b4

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7307

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>

  1. … 5 more files in changeset.
[ASTERIXDB-2762] Use code point as the unit in trim()

This commit aims to use code point as the unit in trim().

Currently, Java char (2 bytes) is used as the unit in trim(),

however, for non-English characters such as Emoji and Korean,

one character may have multiple bytes and thus can be trimmed

in an illegal way if we use Java char as the unit.

Instead, code point is a more natural unit to do so.

Change-Id: If14092be9c2a654dba392bb2b773db81c9e47ae6

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7283

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

  1. … 11 more files in changeset.
[ASTERIXDB-2762] Use code point as the unit in substr()

This commit aims to use code point as the unit in substr().

Currently, Java char (2 bytes) is used as the unit in substr(),

however, for non-English characters such as Emoji and Korean,

one character may have multiple bytes and thus can be splitted into a

few illegal parts if we use Java char as the unit.

Instead, code point is a more natural unit to split characters.

Change-Id: I5c38cfd7abcf6f1c1f23a9f74dfd3181531d8c0f

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7263

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

  1. … 8 more files in changeset.
[ASTERIXDB-2760][COMP] Improve function call resolution

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Refactor function call resolution and perform it earlier,

before GROUP BY expressions are substituted

- Consolidate gby-expr testcases into a single one

- Introduce QueryTranslator.handleDeclareFunctionStatement()

- Rename existing SqlppCaseExpressionVisitor to

SqlppCaseAggregateExtractionVisitor

- Move CASE expression rewriting code from

SqlppBuiltinFunctionRewriteVisitor into a separate visitor:

SqlppCaseExpressionVisitor

- Remove function name normalization code from SqlppAstPrintVisitor

and updated existing reference results

Change-Id: I527ffbff487b8534f66ca27d48788e96c65aec9b

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7264

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>

  1. … 1162 more files in changeset.
[NO ISSUE][COMP] Refactor drop dataverse and drop function

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Refactor feed handling when processing drop dataverse

and drop function

- Move feed dependency checking from QueryTranslator

to MetadataNode to align with other entities

Change-Id: I493dfffd77c596bb3485eccb00b417d40f47b647

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7066

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>

Reviewed-by: Xikui Wang <xkkwww@gmail.com>

  1. … 4 more files in changeset.
Merge commit 'c25c36d1b0' from 'gerrit/mad-hatter'

Change-Id: I8a78950cb81f0a29ceae94fa439eec700c17d06d

  1. … 11 more files in changeset.
Merge branch 'gerrit/mad-hatter'

Change-Id: I5cd06cc3cd69068faecced6a2b1cc558eecd0784

  1. … 5 more files in changeset.
[NO ISSUE][COMP] Improve error reporting in TypeTranslator

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Add error code and source location to exceptions

raised by TypeTranslator

- Pass dataset item type when calling

QueryTranslator.validateExternalDatasetProperties()

Change-Id: I2b62c162f37e72245cdbf70fe9f8307bbf9b2bf1

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6885

Reviewed-by: Till Westmann <tillw@apache.org>

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

  1. … 4 more files in changeset.
Merge branch 'gerrit/mad-hatter'

Change-Id: I7894843a40748c44dcfc3c6a118c663bb25b3586

  1. … 2 more files in changeset.
[ASTERIXDB-2748][RT] CASE fails if default value is TRUE

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Fix ArrayIndexOutOfBoundsException in CASE expression

when the default value is TRUE and none of its WHEN

clauses match at runtime

Change-Id: I8d16c200fa4b65008c241aeb8a0ebb86f7b4a6c0

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6823

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>

  1. … 3 more files in changeset.
[ASTERIXDB-2750][COMP] Incorrect result with unnest and join

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Fix incorrect result when FROM clause contains

simple unnest (",") followed by JOIN

Change-Id: Icfd174ad099aaf24f9553349b3d417d64f9c70b5

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6824

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Till Westmann <tillw@apache.org>

  1. … 5 more files in changeset.
Merge commit '0163af68d0' from 'gerrit/mad-hatter'

Change-Id: I5b53384961e42fe070d2e1b885e762428f6f8c45

  1. … 4 more files in changeset.
[ASTERIXDB-2744][COMP] Fix compiler error during index selection

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Fix NullPointerException in BTreeAccessMethod.createKeyVarsAndExprs()

when there is a composite key.

Change-Id: Ie49a5940afa35c3c2af26a7e7f029a1f73e469f3

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6743

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>

  1. … 7 more files in changeset.
[NO ISSUE] Improve handling of udf parameter/return types

- user model changes: yes

- storage format changes: no

- interface changes: no

Details:

- Prohibit parameter/return type specification for inline udfs

- Prohibit parameter/return type quantifier (?) for external udfs

- Allow external udfs to refer to types from other dataverses

- Do not store type quantifiers in udf metadata

- Align names of anonymous types automatically created by

QueryTranslator for datasets and udfs

- Reserve user-defined type names starting from '$' for system use

- Add testcases

- Prohibit UdfServlet operations if cluster is not active

- Return correct path from IOManager.getWorkspacePath()

- Test framework: support multiple commands in .lib.sqlpp files

- Remove CC files when deleting old instance data in

AsterixHyracksIntegrationUtil

Change-Id: I09bdfd8c7b26750d12339034d2143a16102d1212

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6545

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

  1. … 35 more files in changeset.
[NO ISSUE][COMP] Implement FILTER clause in aggregates

- user model changes: yes

- storage format changes: no

- interface changes: no

Details:

- Implement FILTER subclause in SQL aggregate function calls

- Add testcases and documentation

Change-Id: Ie346a09db51907757df78575d2145085b1d89782

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6424

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>

  1. … 77 more files in changeset.
[NO ISSUE] Added date/time/datetime support to RangeMapBuilder

- user model changes: no

- storage format changes: no

- interface changes: no

details:

-Added date, time, and datetime support to RangeMapBuilder

-Refactored date and datetime parsing

-Added runtime tests for RangeMapBuilder

Change-Id: If1a16a1a5dc4d72ba02ac5717d7e30a62a30bc18

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6403

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

  1. … 22 more files in changeset.
Merge commit 'a548307b9f' from 'gerrit/mad-hatter'

Change-Id: I57eb5d96af8f227e5a9550381418f9468eb400d8

  1. … 8 more files in changeset.
Merge commit '0f407d9224' from 'gerrit/mad-hatter'

Change-Id: I89eaf1bace87130d8d35ec0ce8e0c263ac87b59a

  1. … 1 more file in changeset.
[ASTERIXDB-2725][COMP] Check if dataverse exists before continuing the DDL execution

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Added dataverse check at multiple places before proceeding

with the execution of the DDL.

- Added a test cases for each newly added check.

Change-Id: I8d54b0b10741d65df91cbb4b7596d363f7ddbd97

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6203

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

  1. … 14 more files in changeset.
Merge commit 'aa7ff7b' from 'gerrit/mad-hatter'

Change-Id: Ibfc874ca45692420fb86038537d10e172894730a

  1. … 19 more files in changeset.
Merge commit 'f1cd417' from 'gerrit/mad-hatter'

Change-Id: I0f30399a6485708f4b154af09ea36377fe4d3dbf

  1. … 10 more files in changeset.
Merge commit '4bf7048' from 'gerrit/mad-hatter'

Change-Id: I06432e8daa1669862d1f23a04efdfec5b1e6d7b5

  1. … 3 more files in changeset.
[ASTERIXDB-2731][API] GET is not supported for the query service servlet

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

Remove the restriction of only supporting POST requests in the query service servlet

while maintaining that GET requests cannot change the state of the system

(i.e. no modifying statements can be evaluated when using the GET method).

Change-Id: I989ff489d863697808cdc26898a52b867a9621d6

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6303

Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>

Reviewed-by: Till Westmann <tillw@apache.org>

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

  1. … 16 more files in changeset.
Merge commit '3e2623cf64827e891ecd8c6dea13d03f5599c6a5' into HEAD

Change-Id: I89091d8bf8575c73d26f497d5fbffe780adbedf9

  1. … 8 more files in changeset.
Merge commit 'bc0f7e0' from branch 'gerrit/mad-hatter'

Change-Id: I629850e0f6ac7e1afae3fb5c6e1f1f859b2ead72

  1. … 19 more files in changeset.
[NO ISSUE][COMP] Range scan on a prefix of a composite key

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Fixed an issue with range scan on a prefix of a composite

key not using both bounds to probe the index

Change-Id: I35fb979191b254857211da5c0ec28bae4a370ba8

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6124

Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>

  1. … 7 more files in changeset.