Commit Graph
1146 Commits
Author SHA1 Message Date
Yangruipis 8926c040cd fix: report paging 2022-10-25 15:21:04 +02:00
Tomaž Jerman f6266fb3d5 Fix aggregation count when no arguments are provided
Older versions allowed count(), the new one did not.
The new version now allso supports count() which behaves
how it did before.
2022-10-25 14:45:40 +02:00
Tomaž Jerman 24b5d7c72d Improve total and page list computation to be less intensive
The prev. version iterated everything even if we didn't want the
totals there.
The new version ends processing sooner.
2022-10-25 11:09:13 +02:00
hantian_pang a80e2655fe Fix marshal expr.Type into empty object bug
When using to_json(...) marshal expr.Type into string will get empty
object {} if this Type doesn't implement marshal method. So UntypedValue
obj before json.Marshal if this obj isn't json.Marshaler.
2022-10-24 08:10:18 +02:00
Vivek Patel 5e087748ab Fix locale.ErrorMetaKey case type
Add method to convert string to kebab-case and apply fix to actions.gen.go.tpl for locale.ErrorMetaKey generation.
2022-10-22 15:47:21 +05:30
Tomaž Jerman e2ac9c4f3e Allow envoy resources to implement custom error wrappers
Custom error wrappers allow additional context for more complex
cases.
2022-10-19 16:48:42 +02:00
Vivek Patel 955c4d9b92 ApiGw reload only existing route on save/update
Add reloadEndpoint method to refresh only saved/update route as needed and for the routes no longer exist we attach the 404 handler.
2022-10-12 17:16:56 +05:30
Tomaž Jerman 7c743da936 Fix aggregate attribute expr type guessing for functions 2022-10-12 09:16:40 +02:00
Denis Arh ef12ab9aaa Properly support CONCAT in Postgres and SQLite 2022-10-12 09:16:40 +02:00
Tomaž Jerman 01c6f7cc6e Add base support for offloading pipeline steps to the data source level 2022-10-12 09:16:40 +02:00
Tomaž Jerman 449401dbdf Remove home(filter package)-brew any to typed value conversion 2022-10-12 09:16:40 +02:00
Tomaž Jerman 8703133eac Fix runner gval ref out types to use pointers 2022-10-12 09:16:40 +02:00
Tomaž Jerman a45a08d91c Remove unneeded analyze dal operation 2022-10-12 09:16:40 +02:00
Denis Arh b5609a27b2 Additional flexibility for aggregator and iterator
RDBMS DAL iterator now supports different source and destination models
in order to handle (scan) results from aggregation (and later join)
queries.
2022-10-12 09:16:40 +02:00
Vivek Patel 422f870f40 Add nil check for Vars methods
Fix nil pointer error while calling Vars method with nil Vars, that caused due to 1st statement in method was locking the Vars and expecting the mux preset in given Vars.
2022-10-04 17:16:17 +05:30
Vivek Patel f3ad5e2a1a Fix divide by zero panic
Add check for zero before dividing it.
2022-09-30 19:48:00 +05:30
Denis Arh 4d02146d01 Fix field initialization on record export 2022-09-30 15:50:58 +02:00
Vivek Patel ef72ffa373 Fix total and page navigation for records
Introduce helper func(IteratorPaging) to count total and create page navigation for records and also fixes timezone and milliseconds fir dateTime field value for query.
2022-09-30 18:29:38 +05:30
Tomaž Jerman 7eaab982b7 Fix lapsus with join row merge mapping 2022-09-30 13:41:07 +02:00
Tomaž Jerman 79f3c4ba46 Add provision for report migration 2022-09-30 10:07:47 +02:00
Tomaž Jerman d18c8bd80d Quick fix for invalid aggregate attribute type determination
The logic should change along with how pipeline description
is done and how the pipeline represents attributes.
2022-09-29 22:21:46 +02:00
Tomaž Jerman 8d480e67c0 Allow rdbms model ops to use already parsed filter expressions 2022-09-29 16:34:00 +02:00
Tomaž Jerman 75a3394d15 Make DAL QL functions consistent and introduce DAY
* date outputs the date without the time part
* day outputs the day of the month
2022-09-29 15:40:36 +02:00
Tomaž Jerman e240013386 Add missing types to paging cursor's value guesser 2022-09-29 13:43:54 +02:00
Tomaž Jerman c587db760e Prefix DAL pipeline join attributes with source identifier
This helps avoid name collisions in case the identifiers weren't
provided manually.
2022-09-29 13:43:54 +02:00
Tomaž Jerman 5fa45e0cf7 Make ql parser init more flexible 2022-09-29 13:43:54 +02:00
Tomaž Jerman 92c2a0d12e Add system field translations for report data frames 2022-09-28 11:05:51 +02:00
Tomaž Jerman 7360b72dbf Fix query interval definitions for date add/sub 2022-09-28 10:10:49 +02:00
Denis Arh 2d07357a75 Test HTTP server options before init/activation
Prevents full server initialization and activation on broken connections
and when Corteza can not listen for HTTP requests.
2022-09-28 07:27:42 +02:00
Tomaž Jerman 64ad7e0535 Reword link predicate check error messages 2022-09-26 14:24:49 +02:00
Tomaž Jerman 53f3297579 Add tests for multi-value fields for DAL join step 2022-09-23 16:13:14 +02:00
Tomaž Jerman 7e2fec6da1 Improve aggregate's multi-value support to match the legacy version 2022-09-23 13:58:44 +02:00
Tomaž Jerman 95d4eba4eb Fix limit condition lapsus in DAL pipeline join 2022-09-22 12:32:12 +02:00
Tomaž Jerman 956547a893 Revert "Skip broken tests for dev.3 release"
This reverts commit 340873c82e.
2022-09-22 12:28:17 +02:00
Tomaž Jerman d7ecbafa66 Fixed improper limit check for aggregate and join 2022-09-22 12:25:46 +02:00
Vivek Patel 340873c82e Skip broken tests for dev.3 release 2022-09-21 19:34:05 +05:30
Vivek Patel 9d46f5c234 Add duplicate detection for compose record values
For now only case-sensitive detection is supported, there are 2 type of duplicate detection, one is strict mode which will throw an error on record save if there is any duplicate record with matching value and non-strict mode will only show a warning and won't prevent record saving.
2022-09-21 19:24:43 +05:30
Tomaž Jerman b3cdbd060f Add paging tests for pipeline aggregate and join 2022-09-21 13:24:10 +02:00
Tomaž Jerman 408bfbcc7d Fix aggregator incorrectly determining if we're copying values
In case the expression uses simple attr. reference, there is no
need to initialize expr. runners.
The old logic didn't do this correctly.
2022-09-20 15:45:01 +02:00
Tomaž Jerman c5c7ca011b Use module field label for DAL pipeline outputs 2022-09-20 13:11:24 +02:00
Denis Arh fab9371805 Fix unclosed file-handles (attachments) #410 2022-09-20 12:34:28 +02:00
Tomaž Jerman 40bce0b2c6 Fix remaining tests 2022-09-20 12:10:37 +02:00
Tomaž Jerman 1d7f82172e Refactor execution steps to offload more state preparation
Extract most validation/initialization/preparation logic from
pipeline execution steps into definition steps.
2022-09-19 16:22:37 +02:00
Denis Arh 3050cda023 Add RDBMS DAL model validation
This will prevent misconfigured models with atributes that read from the
same columns. This constraint could/should be removed in the
future.
2022-09-16 12:57:42 +02:00
Tomaž Jerman 077788d9b8 Remove operations from models and connections
For now, operations will be defined on a DB driver.
2022-09-15 13:55:21 +02:00
Tomaž Jerman da24de8b09 Add attribute ident normalization to support legacy names
Older versions allowed more variations for the same system ident.
New one does not; normalization is a temporary solution for it.
2022-09-15 12:06:49 +02:00
Tomaž Jerman 9fdb86c4cf Add date_format to supported QL functions 2022-09-15 12:06:49 +02:00
Denis Arh d1dd4d1a0c Support SQLite table & index creation 2022-09-14 12:18:43 +02:00
Denis Arh 44ba447678 Add support for meta data on attribute types (rdbms:type=integer) 2022-09-14 12:18:43 +02:00
Denis Arh 6939d9e226 Model definition fixes (dal, index) 2022-09-14 12:18:43 +02:00