Skip to content

Commit

Permalink
replace lookup.rst usage of accounts index with account_data inde…
Browse files Browse the repository at this point in the history
…x name

Signed-off-by: YANGDB <[email protected]>
  • Loading branch information
YANG-DB committed Dec 3, 2024
1 parent c13192e commit 37fec28
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/user/ppl/cmd/lookup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The example shows a simple lookup to add the name of a person from a lookup inde

PPL query::

os> source=accounts;
os> source=account_data;
fetched rows / total rows = 2/2
+------------------+----------+
| account_number | gender |
Expand All @@ -51,7 +51,7 @@ PPL query::
| 13 | Alice |
+------------------+----------+

os> source=accounts | lookup hr account_number;
os> source=account_data | lookup hr account_number;
fetched rows / total rows = 2/2
+------------------+----------+----------+
| account_number | gender | name |
Expand All @@ -68,7 +68,7 @@ The example show a lookup to add the name of a person from a lookup index with d

PPL query::

os> source=accounts;
os> source=account_data;
fetched rows / total rows = 2/2
+------------------+----------+
| account_number | gender |
Expand All @@ -86,7 +86,7 @@ PPL query::
| 13 | Alice |
+------------------+----------+

os> source=accounts | lookup hr employee_number AS account_number name AS given_name;
os> source=account_data | lookup hr employee_number AS account_number name AS given_name;
fetched rows / total rows = 2/2
+------------------+----------+----------------+
| account_number | gender | given_name |
Expand All @@ -102,7 +102,7 @@ The example show a lookup to add the name of a person from a lookup index with d

PPL query::

os> source=accounts;
os> source=account_data;
fetched rows / total rows = 4/4
+------------------+----------+------------+------------------+
| account_number | gender | department | name |
Expand All @@ -125,7 +125,7 @@ PPL query::
| 21 | NULL | finance | false |
+------------------+--------------+------------+--------+

os> source=accounts | lookup hr employee_number AS account_number, dep AS department overwrite=true;
os> source=account_data | lookup hr employee_number AS account_number, dep AS department overwrite=true;
fetched rows / total rows = 4/4
+------------------+----------+------------------+------------+-----------+---------+-----------------+
| account_number | gender | name | department | active | dep | employee_number |
Expand All @@ -136,7 +136,7 @@ PPL query::
| 21 | F | Mandy Smith | it | NULL | it | 21 |
+------------------+----------+------------------+------------+-----------+---------+-----------------+

os> source=accounts | lookup hr employee_number AS account_number, dep AS department overwrite=false;
os> source=account_data | lookup hr employee_number AS account_number, dep AS department overwrite=false;
fetched rows / total rows = 4/4
+------------------+----------+------------------+------------+-----------+---------+-----------------+
| account_number | gender | name | department | active | dep | employee_number |
Expand Down

0 comments on commit 37fec28

Please sign in to comment.