Skip to content

Commit 928f4a2

Browse files
committed
Align jsonb aggregate naming and remove unused symbols
1 parent 6ef6d13 commit 928f4a2

File tree

2 files changed

+4
-12
lines changed
  • libs/@local

2 files changed

+4
-12
lines changed

libs/@local/graph/postgres-store/src/store/postgres/query/expression/conditional.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::store::postgres::query::{
1717
pub enum Function {
1818
Min(Box<Expression>),
1919
Max(Box<Expression>),
20-
JsonAgg(Box<Expression>),
20+
JsonbAgg(Box<Expression>),
2121
JsonExtractText(Box<Expression>),
2222
JsonExtractAsText(Box<Expression>, PathToken<'static>),
2323
JsonExtractPath(Vec<Expression>),
@@ -55,7 +55,7 @@ impl Transpile for Function {
5555
expression.transpile(fmt)?;
5656
fmt.write_char(')')
5757
}
58-
Self::JsonAgg(expression) => {
58+
Self::JsonbAgg(expression) => {
5959
fmt.write_str("jsonb_agg(")?;
6060
expression.transpile(fmt)?;
6161
fmt.write_char(')')
@@ -821,9 +821,9 @@ mod tests {
821821
}
822822

823823
#[test]
824-
fn transpile_json_agg() {
824+
fn transpile_jsonb_agg() {
825825
assert_eq!(
826-
Expression::Function(Function::JsonAgg(Box::new(Expression::Parameter(1))))
826+
Expression::Function(Function::JsonbAgg(Box::new(Expression::Parameter(1))))
827827
.transpile_to_string(),
828828
"jsonb_agg($1)"
829829
);

libs/@local/hashql/core/src/symbol/sym.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ hashql_macros::define_symbols! {
3636
entity,
3737
entity_edition_id,
3838
entity_id,
39-
entity_type_ids,
4039
entity_uuid,
4140
eq,
4241
Err,
@@ -55,8 +54,6 @@ hashql_macros::define_symbols! {
5554
left_entity_confidence,
5655
left_entity_id,
5756
left_entity_provenance,
58-
left_entity_uuid,
59-
left_entity_web_id,
6057
link_data,
6158
List,
6259
lt,
@@ -76,10 +73,7 @@ hashql_macros::define_symbols! {
7673
or,
7774
pow,
7875
properties,
79-
property_metadata,
8076
provenance,
81-
provenance_edition,
82-
provenance_inferred,
8377
provided,
8478
r#as: "as",
8579
r#as_force: "as!",
@@ -101,8 +95,6 @@ hashql_macros::define_symbols! {
10195
right_entity_confidence,
10296
right_entity_id,
10397
right_entity_provenance,
104-
right_entity_uuid,
105-
right_entity_web_id,
10698
Some,
10799
special_form,
108100
String,

0 commit comments

Comments
 (0)