object WindowResolution
Utility object for resolving WindowExpression.
It ensures that window frame defintions and order specs are consistent between the WindowFunction and WindowSpecDefinition, throwing errors if configurations are incompatible or missing.
- Alphabetic
- By Inheritance
- WindowResolution
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkWindowFunction(windowExpression: WindowExpression): Unit
- def checkWindowFunctionAndFrameMismatch(windowExpression: WindowExpression): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def resolveFrame(windowExpression: WindowExpression): WindowExpression
Validates the window frame of a WindowExpression.
Validates the window frame of a WindowExpression.
It enforces that the frame in WindowExpression.windowFunction matches the frame in WindowExpression.windowSpec, alterantively it provides a default frame when it is unspecified.
- def resolveOrder(windowExpression: WindowExpression): WindowExpression
Ensures that WindowExpression.windowSpec.orderSpec is not missing.
Ensures that WindowExpression.windowSpec.orderSpec is not missing.
In case of RankLike window functions, it attaches the resolved order to the function to finalize it.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validateResolvedWindowExpression(windowExpression: WindowExpression): Unit
Validates a resolved WindowExpression to ensure it conforms to the allowed constraints.
Validates a resolved WindowExpression to ensure it conforms to the allowed constraints.
By checking the type and configuration of WindowExpression.windowFunction it enforces the following rules: - Disallows FrameLessOffsetWindowFunction (e.g. Lag) without defined ordering or one with a frame which is defined as something other than an offset frame (e.g.
ROWS BETWEENis logically incompatible with offset functions). - Disallows distinct aggregate expressions in window functions. - Disallows use of certain aggregate functions - ListAgg, PercentileCont, PercentileDisc, Median - Allows only window functions of following types:- AggregateExpression (non-distinct)
- FrameLessOffsetWindowFunction
- AggregateWindowFunction
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)