score:1
you are supposed to use symbol
('id
) here rather than string
("id"
).
creating symbol
from string
symbol(fieldname)
is runtime operation and shapeless operates in compile time.
why can't you use symbols?
Source: stackoverflow.com
Related Query
- Shapeless lenses usage with a string definition
- How to convert an Int to a String of a given length with leading zeros to align?
- How to insert double quotes into String with interpolation in scala
- aggregate function Count usage with groupBy in Spark
- Scala with keyword usage
- How to split string with trailing empty strings in result?
- Byte array to String and back.. issues with -127
- Remove whitespaces in string with Scala
- Shapeless - turn a case class into another with fields in different order
- Weird behavior trying to convert case classes to heterogeneous lists recursively with Shapeless
- Converting a tuple of options to an option of tuple with Scalaz or Shapeless
- Scala - URL with Query String Parser and Builder DSL
- Substitute values in a string with placeholders in Scala
- Scala - ambiguous reference to overloaded definition -- with varargs
- How to substitute an empty string (or null) with a default string concisely in Scala
- Pattern matching with shapeless coproduct
- Is there example of scala abstract type usage which is impossible to achieve with generics?
- Is there any usage of implicit functions with several parameters in Scala?
- Scala String interpolation with Format, how to change locale?
- How do I format a string with string interpolation in Scala as a fixed width string?
- Using Slick with shapeless HList
- How to shapeless case classes with attributes and typeclasses?
- String interpolation with triple quotes and multiple lines
- pom configuration to force usage of jvm 7 with scala maven plugin
- Why can a method returning Unit be overridden with method returning String when return types are not explicitly given?
- How to use Specs2 with Scalacheck to automate testing of String arguments?
- How to convert a string column with milliseconds to a timestamp with milliseconds in Spark 2.1 using Scala?
- Scala Regex with $ and String Interpolation
- Hyphenated sub project names with new sbt 0.13 multi-project definition
- Map on HList fails with subtypes of generic type in Scala & Shapeless
More Query from same tag
- How to use cdn url with play framework and scala for image display?
- How do I set the classpath when using the ScalaTest runner
- How to pass a tuple argument the best way?
- How do I efficiently count distinct fields in a collection?
- Mutable maps with object keys
- akka http custom nested directives
- How to update a mutable hashmap element in Scala?
- scala sbt test run setup and cleanup command once on multi project
- Error while using pathdependent types from extended class
- how to convert yyyy-dd-mmThh:mm:ss in spark sql
- Scala: How is instance of Any also instance of Subtypes, Int, Boolean etc
- Scala function literals vs normal private method
- spark multiplie value of frequence in an other string column dataframe
- How to catch an exception within loop/react of an actor?
- Returning the same type the function was passed
- Akka actor is returning type Any instead of Vector[Product]
- Track and log/debug yarn apllication which have been started from a scala binary using spark-submit
- "Package None is not a value" when initializing a scala Option
- Object pythagorean is not a member of package com - Scala programming error
- calling reduce on list of akka http routes yields compilation error (no implicit value for parameter join)
- Spark scala join dataframe within a dataframe
- Does spark rearranges the order of fields in a dataframe internally in alphabetical order?
- Riak-Java cannot deserialize domain objects from MapReduce query in Scala?
- Disable singleton when testing with ScalaTest in Play for Scala
- String interpolation: f or s
- How to unit test Neo4j with Scala?
- How do I copy a file on a Google Drive using v3 of the Google Drive Java API?
- Scala UDF: java.lang.NoClassDefFoundError: scala/ScalaObject
- Eliminate duplicates, change label with scala.xml.transform.RuleTransformer
- IntelliJ style problems after crashing