Skip to content

Commit

Permalink
Add filters
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Jan 11, 2025
1 parent f6028d5 commit d66b487
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 11 deletions.
37 changes: 37 additions & 0 deletions query-engine/core/src/compiler/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ pub enum Expression {
MapField { field: String, records: Box<Expression> },
}

#[derive(Debug, Clone)]
pub enum ExpressionType {
Scalar,
Record,
List(Box<ExpressionType>),
Dynamic,
}

impl ExpressionType {
pub fn is_list(&self) -> bool {
matches!(self, ExpressionType::List(_) | ExpressionType::Dynamic)
}
}

#[derive(thiserror::Error, Debug)]
pub enum PrettyPrintError {
#[error("{0}")]
Expand All @@ -114,6 +128,29 @@ impl Expression {
doc.render_colored(width, &mut buf)?;
Ok(String::from_utf8(buf.into_inner())?)
}

pub fn r#type(&self) -> ExpressionType {
match self {
Expression::Seq(vec) => vec.iter().last().map_or(ExpressionType::Scalar, Expression::r#type),
Expression::Get { .. } => ExpressionType::Dynamic,
Expression::Let { expr, .. } => expr.r#type(),
Expression::GetFirstNonEmpty { .. } => ExpressionType::Dynamic,
Expression::Query(_) => ExpressionType::List(Box::new(ExpressionType::Record)),
Expression::Execute(_) => ExpressionType::Scalar,
Expression::Reverse(expression) => expression.r#type(),
Expression::Sum(_) => ExpressionType::Scalar,
Expression::Concat(vec) => ExpressionType::List(Box::new(
vec.iter().last().map_or(ExpressionType::Scalar, Expression::r#type),
)),
Expression::Unique(expression) => match expression.r#type() {
ExpressionType::List(inner) => inner.as_ref().clone(),
_ => expression.r#type(),
},
Expression::Required(expression) => expression.r#type(),
Expression::Join { parent, .. } => parent.r#type(),
Expression::MapField { records, .. } => records.r#type(),
}
}
}

impl std::fmt::Display for Expression {
Expand Down
61 changes: 50 additions & 11 deletions query-engine/core/src/compiler/translate/query/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use std::collections::HashSet;

use itertools::Itertools;
use query_structure::{
ConditionValue, Filter, ModelProjection, PlaceholderType, PrismaValue, QueryMode, RelationField, ScalarCondition,
ScalarField, ScalarFilter, ScalarProjection,
ConditionListValue, ConditionValue, Filter, ModelProjection, PlaceholderType, PrismaValue, QueryMode,

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / run

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / sqlite / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / sqlite / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / sqlite / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / sqlite / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / sqlite / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / sqlite / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / sqlite / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / sqlite / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.2 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 23.1 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / cockroachdb 22.1 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.2 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 4.4 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mongodb 5 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2017 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2019 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mssql 2022 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 10 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql mariadb / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.6 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 11 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 5.7 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / mysql 8 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 14 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 13 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 15 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 16 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 12 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json join 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json join 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql query 2/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json join 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json join 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / graphql query 3/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json query 4/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / postgres 9 / json query 1/4

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / query-engine-node-api on windows-latest

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / query-engine on macos-13

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / query-engine on windows-latest

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / query-engine-node-api on macos-13

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / test

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / clippy linting

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / test (postgres16, false, postgres, 16)

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / query-engine on ubuntu-latest

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`

Check failure on line 5 in query-engine/core/src/compiler/translate/query/read.rs

View workflow job for this annotation

GitHub Actions / query-engine-node-api on ubuntu-latest

unused imports: `PlaceholderType`, `RelationField`, `ScalarField`, `SelectedField`, and `SelectionResult`
RelationField, ScalarCondition, ScalarField, ScalarFilter, ScalarProjection, SelectedField, SelectionResult,
};
use sql_query_connector::{
context::Context, model_extensions::AsColumns, query_arguments_ext::QueryArgumentsExt, query_builder,
Expand Down Expand Up @@ -113,7 +113,7 @@ fn add_inmemory_join(parent: Expression, nested: Vec<ReadQuery>, ctx: &Context<'
ReadQuery::RelatedRecordsQuery(rrq) => Some(rrq),
_ => None,
})
.map(|rrq| -> TranslateResult<JoinExpression> {
.map(|mut rrq| -> TranslateResult<JoinExpression> {
let parent_field_name = rrq.parent_field.name().to_owned();
let parent_fields = rrq.parent_field.linking_fields();
let child_fields = rrq.parent_field.related_field().linking_fields();
Expand All @@ -124,14 +124,53 @@ fn add_inmemory_join(parent: Expression, nested: Vec<ReadQuery>, ctx: &Context<'
.map(|(left, right)| (left.name().to_owned(), right.name().to_owned()))
.collect_vec();

// nested.add_filter(Filter::Scalar(ScalarFilter {
// mode: QueryMode::Default,
// condition: ScalarCondition::Equals(ConditionValue::value(PrismaValue::placeholder(
// "parent_id".into(),
// PlaceholderType::String,
// ))),
// projection: ScalarProjection::Compound(referenced_fields),
// }));
// let linking_placeholders = parent_fields
// .scalars()
// .map(|sf| {
// (
// sf.clone(),
// PrismaValue::placeholder(
// format!("@parent${}", sf.name()),
// sf.type_identifier().to_placeholder_type(),
// ),
// )
// })
// .collect::<Vec<_>>();
//
// // If constant values were already provided for some of the fields, merge the
// // placeholders for the missing fields. Otherwise, assign new `parent_results`.
// if let Some(parent_results) = &mut rrq.parent_results {
// for result in parent_results {
// for (sf, value) in &linking_placeholders {
// let field = SelectedField::from(sf.clone());
// if result.get(&field).is_none() {
// result.add((field, value.clone()));
// }
// }
// }
// } else {
// rrq.parent_results = Some(vec![SelectionResult::new(linking_placeholders)]);
// }

for (parent_field, child_field) in parent_fields.scalars().zip(child_fields.scalars()) {
let placeholder = PrismaValue::placeholder(
format!("@parent${}", parent_field.name()),
parent_field.type_identifier().to_placeholder_type(),
);

let condition = if parent.r#type().is_list() {
ScalarCondition::In(ConditionListValue::list(vec![placeholder]))
} else {
ScalarCondition::Equals(ConditionValue::value(placeholder))
};

rrq.add_filter(Filter::Scalar(ScalarFilter {
condition,
projection: ScalarProjection::Single(child_field.clone()),
mode: QueryMode::Default,
}));
}

let child_query = translate_read_query(ReadQuery::RelatedRecordsQuery(rrq), ctx)?;

Ok(JoinExpression {
Expand Down
10 changes: 10 additions & 0 deletions query-engine/core/src/query_ast/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,13 @@ impl FilteredQuery for ManyRecordsQuery {
self.args.filter = Some(filter)
}
}

impl FilteredQuery for RelatedRecordsQuery {
fn get_filter(&mut self) -> Option<&mut Filter> {
self.args.filter.as_mut()
}

fn set_filter(&mut self, filter: Filter) {
self.args.filter = Some(filter)
}
}
18 changes: 18 additions & 0 deletions query-engine/query-structure/src/field/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mod relation;
mod scalar;

pub use composite::*;
use prisma_value::PlaceholderType;
pub use relation::*;
pub use scalar::*;

Expand Down Expand Up @@ -179,6 +180,23 @@ impl TypeIdentifier {
}
}

pub fn to_placeholder_type(&self) -> PlaceholderType {
match self {
TypeIdentifier::String => PlaceholderType::String,
TypeIdentifier::Int => PlaceholderType::Int,
TypeIdentifier::BigInt => PlaceholderType::BigInt,
TypeIdentifier::Float => PlaceholderType::Float,
TypeIdentifier::Decimal => PlaceholderType::Decimal,
TypeIdentifier::Boolean => PlaceholderType::Boolean,
TypeIdentifier::Enum(_) => PlaceholderType::String,
TypeIdentifier::UUID => PlaceholderType::String,
TypeIdentifier::Json => PlaceholderType::Object,
TypeIdentifier::DateTime => PlaceholderType::Date,
TypeIdentifier::Bytes => PlaceholderType::Bytes,
TypeIdentifier::Unsupported => PlaceholderType::Any,
}
}

/// Returns `true` if the type identifier is [`Enum`].
pub fn is_enum(&self) -> bool {
matches!(self, Self::Enum(..))
Expand Down

0 comments on commit d66b487

Please sign in to comment.