com.choreograph.tyda
Members list
Packages
Type aliases for functions over Expr and AggregateExpr
Type aliases for functions over Expr and AggregateExpr
Attributes
Type members
Classlikes
Attributes
- Companion
- object
- Source
- AdditiveExpr.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_AdditiveExpr_Doubleobject given_AdditiveExpr_Floatobject given_AdditiveExpr_Intobject given_AdditiveExpr_Long
Attributes
- Companion
- trait
- Source
- AdditiveExpr.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AdditiveExpr.type
An expression that represents an aggregated value.
An expression that represents an aggregated value.
This class is closely related to Expr, and supports most of the same operations. But contains some aggregate expression and can therefore only be used in Dataset.aggregate and GroupedDataset.aggregate.
Use aggregate functions in aggregates to create instances from Expr.
Attributes
- Companion
- object
- Source
- AggregateExpr.scala
- Supertypes
-
trait Selectableclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- AggregateExpr.scala
- Supertypes
- Self type
-
AggregateExpr.type
Attributes
- Source
- AllSingletons.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AllSingletons.type
Attributes
- Companion
- object
- Source
- Arbitrary.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Arbitrary.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Arbitrary.type
Attributes
- Source
- Arity.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Arity.type
Attributes
- Companion
- object
- Source
- AsExprOrExplode.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- AsExprOrExplode.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AsExprOrExplode.type
Attributes
- Source
- Binary.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Binary.type
Generated by sbt
Generated by sbt
Attributes
- Source
- BuildInfo.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BuildInfo.type
Attributes
- Companion
- object
- Source
- CanCast.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- CanCast.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CanCast.type
Attributes
- Companion
- object
- Source
- CanTryCast.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- CanTryCast.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CanTryCast.type
Attributes
- Companion
- object
- Source
- Codec.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait EnumAsString[T]class Product[T]
Attributes
- Companion
- trait
- Source
- Codec.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Codec.type
Type class that serves as evidence that a type can be compared in the Expr API.
Type class that serves as evidence that a type can be compared in the Expr API.
For opaque types backed that should be comparable one just needs to provide the a given instance for the Comparable type.
opaque type MyLong = Long
object MyLong {
given Comparable[MyLong] = Comparable[Long]
}
Attributes
- Companion
- object
- Source
- Comparable.scala
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
-
trait Primitive[T]
Attributes
- Companion
- trait
- Source
- Comparable.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Comparable.type
Attributes
- Source
- CompiledExplodeExpr.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CompiledExplodeExpr.type
Attributes
- Companion
- object
- Source
- Dataset.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Dataset.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Dataset.type
Attributes
- Source
- Date.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Date.type
Attributes
- Source
- Decimal.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Decimal.type
Type class that extracts default values from field definitions of a case class.
Type class that extracts default values from field definitions of a case class.
The default values are obtained using macros by looking for generated methods of the companion object of the case class. This seems to be the only way to obtain default values for case class fields in Scala 3. And is how it is done in other libraries like circe [0], magnolia [1]. Hopefully, this can be replace by some builin support in the future [3].
Attributes
- Companion
- object
- Source
- Defaults.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Defaults.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Defaults.type
Attributes
- Source
- Duration.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Duration.type
Attributes
- Source
- ExplodeExpr.scala
- Supertypes
A typed expression using in the Dataset API.
A typed expression using in the Dataset API.
This leverages NamedTuple to provide type safe access to fields when T is a product type.
Attributes
- Companion
- object
- Source
- Expr.scala
- Supertypes
-
trait Selectableclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- Expr.scala
- Supertypes
- Self type
-
Expr.type
Contains the public api for a Expr[T] the api is provided as extension methods.
Contains the public api for a Expr[T] the api is provided as extension methods.
It is implemented as a trait taking a type parameter Expr[_] so that it can be reused for both Expr[_] and AggregateExpr[_] without duplicating the code.
Attributes
- Source
- ExprApi.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object AggregateExprobject Expr
Spark and other query engines often support access to metadata like path, modified time, and file sizes.
Spark and other query engines often support access to metadata like path, modified time, and file sizes.
This adds this information in a typed class. Currently, only the path is provided as that is all that is currently needed.
Note: This class is created using untyped apis in each tyda backend. Therefore, each backend must be updated when extending this class.
Attributes
- Source
- FileMetadata.scala
- Supertypes
Attributes
- Source
- Format.scala
- Supertypes
Type class that service as evidence that a type can be used in grouping operations.
Type class that service as evidence that a type can be used in grouping operations.
This is all types except for Map and types that contain Map.
Attributes
- Companion
- object
- Source
- Groupable.scala
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Groupable.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Groupable.type
Attributes
- Companion
- object
- Source
- GroupedDataset.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- GroupedDataset.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GroupedDataset.type
Type class used to retrict ExprApi.toJson and ExprApi.fromJson to only support structs and arrays.
Type class used to retrict ExprApi.toJson and ExprApi.fromJson to only support structs and arrays.
This is mainly to make the intial support easier to implement and will hopefully be lifted in the future.
Attributes
- Companion
- object
- Source
- JsonArrayOrObject.scala
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- JsonArrayOrObject.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsonArrayOrObject.type
Type class for merging two product types Left and Right into a new product type Out.
Type class for merging two product types Left and Right into a new product type Out.
When merging, if there are fields with the same name in both Left and Right, the field from Right have precedence and will be used in the resulting type Out.
For example: TODO: Remove nocompile when https://github.com/scala/scala3/issues/24946 is fixed
case class A(x: Int, y: String)
case class B(y: Int, z: Boolean)
val merger = Merger[A, B]
val m: (x: Int, y: Int, z: Boolean) = merger(A(1, "hello"), B(2, true))
// (x = 1, y = 2, z = true)
This is similar to record merge in shapeless2.
Note: This could be implemented using match types instead, but we did not find a way to make that without significant compiletime cost for large products.
Attributes
- Companion
- object
- Source
- Merger.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Merger.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Merger.type
Attributes
- Companion
- object
- Source
- NumericsReadMode.scala
- Supertypes
Attributes
- Companion
- enum
- Source
- NumericsReadMode.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
NumericsReadMode.type
Ord is an SQL compatible Ordering that allows automatic derivation for sum and product types.
Ord is an SQL compatible Ordering that allows automatic derivation for sum and product types.
It is intended to be used in the derives clause for case classes and enums that should have orderings.
The implementation is intended to be compatible with ordering used in common SQL engines like Spark. This means that the ordering for floating point is the one commonly used in sql engines where -0.0 == 0.0 and NaN is larger than all values.
For example in Spark:
scala> spark.sql("SELECT -0.0 == 0.0, -0.0 < 0.0").show()
+-----------+-----------+
|(0.0 = 0.0)|(0.0 < 0.0)|
+-----------+-----------+
| true| false|
+-----------+-----------+
or duckdb
duckdb> SELECT -0.0 == 0.0, -0.0 < 0.0;
┌─────────────┬─────────────┐
│ (0.0 = 0.0) ┆ (0.0 < 0.0) │
╞═════════════╪═════════════╡
│ true ┆ false │
└─────────────┴─────────────┘
or postgres
postgres=# SELECT -0.0 = 0.0, -0.0 < 0.0;
?column? | ?column?
----------+----------
t | f
(1 row)
Sadly GoogleSQL used in BigQuery does not support this and instead have IEEE semantics.
Attributes
- Companion
- object
- Source
- Ord.scala
- Supertypes
-
trait Ordering[T]trait PartialOrdering[T]trait Equiv[T]trait Serializabletrait Comparator[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
Type class that serves as evidence that a type can be used in ordering operations.
Type class that serves as evidence that a type can be used in ordering operations.
All primitive types are orderable. Option, products, and sum types are orderable if their element types are orderable. Seq and Map types are not orderable, reflecting the fact that SQL engines (e.g. BigQuery) do not support ORDER BY on array or map columns.
Attributes
- Companion
- object
- Source
- Orderable.scala
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Orderable.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Orderable.type
Attributes
- Companion
- object
- Source
- Projector.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Projector.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Projector.type
Attributes
- Source
- ReferenceId.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ReferenceId.type
Type class for removing unique field of type E from a product type P.
Type class for removing unique field of type E from a product type P.
This is inspired by the Remove[1] in shapeless2 but defined for any type P which has a Mirror.ProductOf instance and a unique field of type E.
Attributes
- Companion
- object
- Source
- Remover.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Remover.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Remover.type
Attributes
- Source
- Runner.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- object
- Source
- RunnerArgs.scala
- Supertypes
Attributes
- Companion
- enum
- Source
- RunnerArgs.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RunnerArgs.type
Type class for extracting unique field of type E from the product type P.
Type class for extracting unique field of type E from the product type P.
This inspired by the Selector in shapeless2 but defined for any type P which has a Mirror.ProductOf instance and a unique field of type E.
Attributes
- Companion
- object
- Source
- Selector.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- Selector.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Selector.type
Attributes
- Source
- SimpleTypeName.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SimpleTypeName.type
Attributes
- Source
- Singletons.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Singletons.type
Attributes
- Source
- StringLiterals.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StringLiterals.type
Attributes
- Companion
- object
- Source
- SumMagnet.scala
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- SumMagnet.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SumMagnet.type
Attributes
- Source
- TableLocation.scala
- Supertypes
Attributes
- Source
- Timestamp.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Timestamp.type
Attributes
- Source
- TupleOperations.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TupleOperations.type
Attributes
- Companion
- object
- Source
- TypeName.scala
- Supertypes
Attributes
- Companion
- class
- Source
- TypeName.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TypeName.type
Attributes
- Source
- UniqueIndexOf.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
UniqueIndexOf.type
Attributes
- Source
- Codec.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Variant.type
Attributes
- Source
- aggregates.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
aggregates.type
Deprecated classlikes
Mixin that provides a stable hashCode for Enums.
Mixin that provides a stable hashCode for Enums.
Singletons case for enums do not have stable hashCode (at least as of Scala 3.7.0 but according to https://github.com/scala/scala3/issues/19177 will in the future). This is a problem when an enum is used in a RDD that get partitioned using the HashPartitioner. When it been fixed upstream, this mixin can be removed.
Note: That stable here only promises that the hashCode is stable across jvm executions but the implementation might be changed in the future.
Attributes
- Deprecated
- No longer needed since Scala 3.7.3
- Source
- EnumStableHashCode.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Enum
Types
A type class that provides access and serves as evidence that all values of a enum are singletons.
A type class that provides access and serves as evidence that all values of a enum are singletons.
Attributes
- Source
- AllSingletons.scala
Attributes
- Source
- Arity.scala
An immutable sequence of bytes with value semantics.
An immutable sequence of bytes with value semantics.
In SQL backends this corresponds to the BINARY / BYTES type.
Attributes
- Source
- Binary.scala
Date represents a calendar date.
Date represents a calendar date.
Valid range is [0001-01-01, 9999-12-31]. Values outside this range will cause an java.lang.ArithmeticException when constructed via Date.fromDays or arithmetic operations. Note that this limit is not always strictly enforced when reading data from external sources such as Parquet files.
Attributes
- Source
- Date.scala
Decimal type with compile-time precision and scale.
Decimal type with compile-time precision and scale.
This type is constrained to be encodable as a 128 bit value. This means that the maximum precision is 38 and the scale is less or equal to the precision. This mostly matches how Spark handles decimal types.
Attributes
- Source
- Decimal.scala
Represents a duration of time with microsecond precision.
Represents a duration of time with microsecond precision.
In SQL the corresponding type is INTERVAL DAY TO SECOND.
Attributes
- Source
- Duration.scala
Attributes
- Source
- ReferenceId.scala
Typeclass that produces the simple (unqualified) typename with type parameters.
Typeclass that produces the simple (unqualified) typename with type parameters.
Attributes
- Source
- SimpleTypeName.scala
A type class that provides access to the singletons values of an enum.
A type class that provides access to the singletons values of an enum.
If you want to ensure that all values of an enum are singletons, use AllSingletons instead.
Attributes
- Source
- Singletons.scala
The collection of strings of a tuple of string literals.
A timestamp represents a point in time with microsecond precision.
A timestamp represents a point in time with microsecond precision.
Valid range is [0001-01-01T00:00:00.000000Z, 9999-12-31T23:59:59.999999Z]. Values outside this range will cause an java.lang.ArithmeticException when constructed via Timestamp.fromMicros . Note that this limit is not always strictly enforced when reading data from external sources such as Parquet files.
NOTE: In practice it's implemented as a Long representing the number of microseconds since the unix epoch. But this should not be exposed at api level Expr[Timestamp] might have a different implmentation in some backends.
Attributes
- Source
- Timestamp.scala
Given that provides the index of the unique occurrence of the type E in the tuple T.
Given that provides the index of the unique occurrence of the type E in the tuple T.
If there is no ocurrence or multiple occurences no given is provided.
Attributes
- Source
- UniqueIndexOf.scala
Value members
Concrete fields
Attributes
- Source
- functions.scala