Skip to content

Commit

Permalink
improve the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Dec 23, 2024
1 parent 5233e4a commit 856a5f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions datafusion/sql/src/unparser/extension_unparser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ pub trait UserDefinedLogicalNodeUnparser {
///
/// This method is called when the custom logical node is part of a statement.
/// e.g. `SELECT * FROM custom_logical_node`
///
/// The return value should be [UnparseResult::WithinStatement] if the custom logical node was successfully unparsed.
/// Otherwise, return [UnparseResult::Original].
fn unparse(
&self,
_node: &dyn UserDefinedLogicalNode,
Expand All @@ -40,6 +43,9 @@ pub trait UserDefinedLogicalNodeUnparser {
/// Unparse the custom logical node to a statement.
///
/// This method is called when the custom logical node is a custom statement.
///
/// The return value should be [UnparseResult::Statement] if the custom logical node was successfully unparsed.
/// Otherwise, return [UnparseResult::Original].
fn unparse_to_statement(
&self,
_node: &dyn UserDefinedLogicalNode,
Expand Down

0 comments on commit 856a5f5

Please sign in to comment.