You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[WARNING] Questionable row-class found.
The field 'persistenceId' in the object AllPersistenceIdsRow will be used in the query instead of the field .
Are you sure this is the intended behavior? Perhaps you meant to write an encoder/decoder for AllPersistenceIdsRow?
See the section on Mapped Encodings in the quill documentation here: https://getquill.io/#extending-quill-custom-encoding for the simplest way to do that.
// The field 'value' in Person.Name.First will be use in the query[Person] instead of Person.name or Person.Name.first.
// Are you sure this is the intended behavior? Perhaps you meant to write an encoder/decoder for Person.Name.First?
// See the section on Mapped Encodings in the quill documentation here: <> for the simplest way to do that.
valmsg=
s"The field '${found.innerField}' in the object ${found.pathToInnerField} will be used in the query${found.outerClass.map(r =>s"[$r]").getOrElse("")}"+
s"instead of the field ${found.possibleInnerPaths.mkString(" or ")}."+
s"\nAre you sure this is the intended behavior? "+
s"Perhaps you meant to write an encoder/decoder for ${found.pathToInnerField}?"+
s"\nSee the section on Mapped Encodings in the quill "+
s"documentation here: $link for the simplest way to do that."
BranchFoundMessage(msg)
}
}
The text was updated successfully, but these errors were encountered:
counter2015
changed the title
Inaccurate waring on Mapped Encodings on compile time
Inaccurate waring on Mapped Encodings at compile time
Nov 2, 2022
This seems to happen on case classes with a single parameter. AllPersistenceIdsRow(persistenceId: String, test: Int) would not raise the warning, in my experience
counter2015
changed the title
Inaccurate waring on Mapped Encodings at compile time
Inaccurate warning on Mapped Encodings at compile time
Nov 18, 2022
Version: 4.6.0
Module: quill-cassandra-zio
Database: cassandra
Expected behavior
It should compile well
Actual behavior
It will rasie warning in comple time
relative code
zio-quill/quill-engine/src/main/scala/io/getquill/quat/FindBranches.scala
Lines 74 to 89 in 332152a
The text was updated successfully, but these errors were encountered: