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
SELECTx.id, x.name, x.phone, x.addressFROM Person x
Actual behavior
Actual CQL query generated:
SELECT id, name, contact FROM person
The query contains a wrong column contact. Instead it should contain attributes of the embedded case class Contact: phone and address.
I tried to add extends Embedded but this doesn't help.
Steps to reproduce the behavior
Take the example documented in Embedded case classes and try to compile and run it. When compiling, the compiler prints the generated query on stdio.
Workaround
Don't use embedded case classes for database queries, use additional flat case classes instead. This is quite inconvenient and requires to write additional transformations between the two formats.
The text was updated successfully, but these errors were encountered:
This template isn't a strict requirement to open issues, but please try to provide as much information as possible.
Version: ZIO Quill 4.8.4
Module:
quill-cassandra
Database:
Cassandra
Expected behavior
As described in the chapter Embedded case classes:
Scala classes to describe Cassandra DB entities:
DAO to retrieve Persons from Cassandra DB:
Expected CQL query:
Actual behavior
Actual CQL query generated:
The query contains a wrong column
contact
. Instead it should contain attributes of the embedded case classContact
:phone
andaddress
.I tried to add
extends Embedded
but this doesn't help.Steps to reproduce the behavior
Take the example documented in Embedded case classes and try to compile and run it. When compiling, the compiler prints the generated query on stdio.
Workaround
Don't use embedded case classes for database queries, use additional flat case classes instead. This is quite inconvenient and requires to write additional transformations between the two formats.
The text was updated successfully, but these errors were encountered: