Skip to content

Commit

Permalink
updates in line with code merged in from main
Browse files Browse the repository at this point in the history
  • Loading branch information
gneeri committed Nov 25, 2024
1 parent 8fdda8c commit 24df347
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.hasura.phoenix

import io.hasura.ndc.app.services.ConnectorConfigurationLoader
import io.hasura.ndc.common.ConnectorConfiguration
import io.hasura.ndc.common.NDCScalar
import io.hasura.ndc.ir.*
import io.hasura.ndc.ir.Field.ColumnField
Expand All @@ -26,6 +26,7 @@ object NoRelationshipsQueryGenerator : BaseQueryGenerator() {
ApplyBinaryComparisonOperator.IN -> col.`in`(value)
ApplyBinaryComparisonOperator.IS_NULL -> col.isNull
ApplyBinaryComparisonOperator.LIKE -> col.like(value as Field<String>)
else -> throw Exception("Unsupported operator: $operator")
}
}

Expand Down Expand Up @@ -130,7 +131,7 @@ object NoRelationshipsQueryGenerator : BaseQueryGenerator() {
}

fun columnTypeTojOOQType(collection: String, field: ColumnField): DataType<out Any> {
val connectorConfig = ConnectorConfigurationLoader.config
val connectorConfig = ConnectorConfiguration.Loader.config

val table = connectorConfig.tables.find { it.tableName == collection }
?: error("Table $collection not found in connector configuration")
Expand Down

0 comments on commit 24df347

Please sign in to comment.