Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Alex Kyllo a7d462f2e3 add slice_sample dplyr verb 2022-12-20 07:48:54 -08:00
Alex 929b3cc029 replace use of `[[` with quo_get_expr() 2020-01-21 09:40:22 -08:00
Hong Ooi 180f1ef1a3 linting 2019-08-31 18:03:32 +10:00
Alex Kyllo b89652b26b condition a few tests on tidyr package version, remove some rlang functions that are deprecated in v 0.4.0 2019-08-30 17:25:32 -07:00
Alex Kyllo a35889ef8c Add nest/unnest verbs and dynamic to list columns (#50)
* add unnest verb

* add nest() verb

* add test for nest() verb

* re-run document()

* add proper group handling for nest()

* add test for unnest with multiple columns

* remove dead code

* update documentation

* fix broken .Rd files

* bugfix in parse_command_result()

* only overwrite DataType into ColumnType if it doesn't exist; add integration tests for nest/unnest
2019-05-10 10:57:12 +10:00
Alex Kyllo 4f43580c00 bugfix: regression in summarize clause generation 2019-04-22 10:43:04 -07:00
Hong Ooi c5ad2ddb90 Support cross-cluster joining with dplyr interface (#44)
* add cluster to table spec

* test cross-cluster joining

* cross-cluster join hinting

* update doc

* fix ingest Rd

* typo

* cross-cluster hinting test
2019-03-21 08:02:03 -07:00
Alex Kyllo 698a6d7a8b Include params in partial evaluation environment (#43)
* include params in environment for partial evaluation of expressions in filter() and mutate()

* include params in environment for partial evaluation of expressions in filter() and mutate()

* update docstring for tbl_kusto_abstract to reflect removal of simulate_kusto()

* replace 'setosa' with p again in filter param test

* add comment explaining vars_select usage and extract add_params_to_quosure function

* add parameterised query integration test

* require bit64 quietly
2019-03-14 13:43:42 +11:00
Hong Ooi aa87296df0 Add hinting support for joins, summarise (#41)
* initial changes

* modify ops

* testing

* summarize hints

* document

* make hints more explicit, add documentation

* typo

* fix hints for joining

* add hinting integration tests

* support num_partitions hint
2019-03-05 10:34:29 -08:00
Hong Ooi 7394245d58
Escape identifiers with [' '] (#35)
* fix #33: don't escape join type
* fix #32: escape lhs of mutate, rename, summarise exprs
* close #34: add print method
* add dplyr integration testing
* changes to tbl_kusto_abstract and simulate_kusto
* fix for escaping table names when table name is a Kusto function call
2019-02-22 13:24:26 +11:00
Alex Kyllo 0a7607e54c add base case for flatten_query that works for op_base_remote where x is not a tbl_df 2019-02-19 19:37:39 -08:00
Alex Kyllo 7c9f02df9d get testthat tests to pass with devtools::check() (#21)
* export methods to get testthat tests to pass when run by devtools::check()

* fix undocumented params in op_base and tbl_kusto

* reexport dplyr functions to fix R CMD CHECK warnings, make function signatures match generics

* don't need importFrom since we already import dplyr
2019-01-29 14:03:34 +11:00
Alex Kyllo be2a518b31 Add documentation for dplyr API (#17)
* adding documentation for dplyr API

* add documentation to exported functions in dplyr API to help clean up R CMD CHECK
2019-01-24 09:11:59 +08:00
Alex Kyllo 578dc9217e Implement dplyr API (#6)
* import rlang

* refactoring

* refactored and tests passing again

* add tests for kql-escape

* added arrange function

* remove purrr dependency

* merge namespace file

* start working on group_by, summarize, and ungroup

* finalize changes to replace AzureDataExplorer with AzureKusto name

* implemented group_by and summarise

* make mutate() work with agg functions

* add rename() verb

* add head() verb

* start implementing join

* add tbl_kusto class

* implement collect() verb

* make render() quote the database name for show_query and collect

* get basic one-column inner join working

* add basic support for one-column left, right, outer, anti, semi joins

* handle join on one differently-named column

* make join work with multiple differently named columns

* add verb: union_all as this is the only setop flavor supported by Kusto

* error on unsupported setops

* remove DBI stuff for now

* remove DBI as an import

* remove DBITest from suggested imports

* add rlang to imports list in DESCRIPTION

* various cleanup

* rename tbl_abstract to tbl_kusto_abstract

* remove call to as.tibble in collect()

* add tibble to Imports and call  as.tibble in collect() method

* add tibble to Imports and call  as.tibble in collect() method

* remove tibble from DESCRIPTION and call dplyr::as_tibble instead
2019-01-15 03:50:15 +11:00