Skip to content

Commit db42008

Browse files
committed
Add links to docs
1 parent 8550677 commit db42008

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎datafusion/sql/src/unparser/dialect.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ impl Dialect for MySqlDialect {
620620
return date_part_to_sql(unparser, self.date_field_extract_style(), args);
621621
}
622622

623+
// https://dev.mysql.com/doc/refman/9.7/en/mathematical-functions.html#function_rand
623624
if func_name == "random" {
624625
return Ok(Some(unparser.scalar_function_to_sql("rand", args)?));
625626
}
@@ -764,6 +765,7 @@ impl Dialect for BigQueryDialect {
764765
return date_part_to_sql(unparser, self.date_field_extract_style(), args);
765766
}
766767

768+
// https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/mathematical_functions#rand
767769
if func_name == "random" {
768770
return Ok(Some(unparser.scalar_function_to_sql("rand", args)?));
769771
}

0 commit comments

Comments
 (0)