Skip to content

Commit

Permalink
update README doc with desc command
Browse files Browse the repository at this point in the history
Signed-off-by: YANGDB <[email protected]>
  • Loading branch information
YANG-DB committed Aug 16, 2024
1 parent 0990c11 commit f0230ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ppl-spark-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ This section describes the next steps planned for enabling additional commands a
#### Example PPL Queries
See the next samples of PPL queries :

**Describe**
- `describe table` This command is equal to the `DESCRIBE EXTENDED table` SQL command

**Fields**
- `source = table`
- `source = table | fields a,b,c`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public LogicalPlan visitRelation(Relation node, CatalystPlanContext context) {
new DescribeTableCommand(
identifier,
scala.collection.immutable.Map$.MODULE$.<String, String>empty(),
false,
true,
DescribeRelation$.MODULE$.getOutputAttrs()));
}
//regular sql algebraic relations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class PPLLogicalPlanBasicQueriesTranslatorTestSuite
val expectedPlan = DescribeTableCommand(
TableIdentifier("t"),
Map.empty[String, String],
isExtended = false,
isExtended = true,
output = DescribeRelation.getOutputAttrs)
comparePlans(expectedPlan, logPlan, false)
}
Expand All @@ -60,7 +60,7 @@ class PPLLogicalPlanBasicQueriesTranslatorTestSuite
val expectedPlan = DescribeTableCommand(
TableIdentifier("t", Option("catalog")),
Map.empty[String, String].empty,
isExtended = false,
isExtended = true,
output = DescribeRelation.getOutputAttrs)
comparePlans(expectedPlan, logPlan, false)
}
Expand Down

0 comments on commit f0230ea

Please sign in to comment.