Skip to content

Commit

Permalink
feat: adding impala random function (#483)
Browse files Browse the repository at this point in the history
* adding impala RAND function

* docs yo

* Update README.md

accepting changes

Co-authored-by: Neha Nene <[email protected]>

Co-authored-by: Neha Nene <[email protected]>
  • Loading branch information
renzokuken and nehanene15 committed May 23, 2022
1 parent 1fb7e8b commit 93d2072
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ data-validation (--verbose or -v) validate row
Comma-separated key value pair labels for the run.
[--format or -fmt] Format for stdout output. Supported formats are (text, csv, json, table).
Defaults to table.
[--use-random-row or -rr]
Finds a set of random rows of the first primary key supplied.
[--random-row-batch-size or -rbs]
Row batch size used for random row filters (default 10,000).
```

#### Schema Validations
Expand Down
2 changes: 2 additions & 0 deletions data_validation/query_builder/random_row_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import ibis.expr.rules as rlz
import ibis.backends.base_sqlalchemy.compiler as sql_compiler
from ibis_bigquery import BigQueryClient
from ibis.backends.impala.client import ImpalaClient
from ibis.backends.pandas.client import PandasClient
import ibis.backends.pandas.execution.util as pandas_util

Expand All @@ -43,6 +44,7 @@
RANDOM_SORT_SUPPORTS = {
PandasClient: "NA",
BigQueryClient: "RAND()",
ImpalaClient: "RAND()",
}


Expand Down

0 comments on commit 93d2072

Please sign in to comment.