Skip to content

Commit a1cda98

Browse files
committed
fmt
1 parent 60ff5f2 commit a1cda98

11 files changed

Lines changed: 33 additions & 11 deletions

src/json_as_text.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ impl ScalarUDFImpl for JsonAsText {
6565
// then we can push this UDF down to the leaf nodes.
6666
if args.len() >= 2
6767
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
68-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
68+
&& args[1..]
69+
.iter()
70+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
6971
{
7072
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7173
} else {

src/json_contains.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ impl ScalarUDFImpl for JsonContains {
6969
// then we can push this UDF down to the leaf nodes.
7070
if args.len() >= 2
7171
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
72-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
72+
&& args[1..]
73+
.iter()
74+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
7375
{
7476
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7577
} else {

src/json_get.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ impl ScalarUDFImpl for JsonGet {
7171
// then we can push this UDF down to the leaf nodes.
7272
if args.len() >= 2
7373
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
74-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
74+
&& args[1..]
75+
.iter()
76+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
7577
{
7678
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7779
} else {

src/json_get_array.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ impl ScalarUDFImpl for JsonGetArray {
7373
// then we can push this UDF down to the leaf nodes.
7474
if args.len() >= 2
7575
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
76-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
76+
&& args[1..]
77+
.iter()
78+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
7779
{
7880
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7981
} else {

src/json_get_bool.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ impl ScalarUDFImpl for JsonGetBool {
6464
// then we can push this UDF down to the leaf nodes.
6565
if args.len() >= 2
6666
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
67-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
67+
&& args[1..]
68+
.iter()
69+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
6870
{
6971
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7072
} else {

src/json_get_float.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ impl ScalarUDFImpl for JsonGetFloat {
6565
// then we can push this UDF down to the leaf nodes.
6666
if args.len() >= 2
6767
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
68-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
68+
&& args[1..]
69+
.iter()
70+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
6971
{
7072
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7173
} else {

src/json_get_int.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ impl ScalarUDFImpl for JsonGetInt {
6565
// then we can push this UDF down to the leaf nodes.
6666
if args.len() >= 2
6767
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
68-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
68+
&& args[1..]
69+
.iter()
70+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
6971
{
7072
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7173
} else {

src/json_get_json.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ impl ScalarUDFImpl for JsonGetJson {
6363
// then we can push this UDF down to the leaf nodes.
6464
if args.len() >= 2
6565
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
66-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
66+
&& args[1..]
67+
.iter()
68+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
6769
{
6870
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
6971
} else {

src/json_get_str.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ impl ScalarUDFImpl for JsonGetStr {
6464
// then we can push this UDF down to the leaf nodes.
6565
if args.len() >= 2
6666
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
67-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
67+
&& args[1..]
68+
.iter()
69+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
6870
{
6971
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7072
} else {

src/json_length.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ impl ScalarUDFImpl for JsonLength {
6565
// then we can push this UDF down to the leaf nodes.
6666
if args.len() >= 2
6767
&& matches!(args[0], datafusion::logical_expr::ExpressionPlacement::Column)
68-
&& args[1..].iter().all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
68+
&& args[1..]
69+
.iter()
70+
.all(|arg| matches!(arg, datafusion::logical_expr::ExpressionPlacement::Literal))
6971
{
7072
datafusion::logical_expr::ExpressionPlacement::MoveTowardsLeafNodes
7173
} else {

0 commit comments

Comments
 (0)