zio / zio-quill

Compile-time Language Integrated Queries for Scala
https://zio.dev/zio-quill
Apache License 2.0
2.14k stars 347 forks source link

Scala compiler message: Could not infer SQL-type of String, assuming it is a Unknown Quat. #3054

Open tnielens-centrica opened 1 week ago

tnielens-centrica commented 1 week ago

The scala compiler logs these messages for certain custom types of mine.

Could not infer SQL-type of String, assuming it is a Unknown Quat.
Could not infer SQL-type of org.joda.DateTime, assuming it is a Unknown Quat.
Could not infer SQL-type of Quality, assuming it is a Unknown Quat.

These aren't actionable as they don't point to a code location. They don't either use standard logging level that the compiler seem to support as I see other messages prefixed with info/warn, etc.

I do provide codecs for these types. The compilation succeeds and quill behaves fine at runtime.

Version: 4.8.4 Module: quill-engine Database: mysql

Expected behavior

A compilation error with an actionable message. Or a success with no compiler messages.

Actual behavior

The compilation succeeds but I get these compiler messages.

Steps to reproduce the behavior

Workaround

@getquill/maintainers