Replies: 2 comments
|
hi there, thank you for reaching out about this concern. we will be sure to consider this use case with our new parser |
|
Hey @konnor-b, thanks for raising this. I agree, removing this without an equivalent path in the typed Column API doesn't make sense, so I'll keep PassThroughCondition supported in 2.0; it'll carry the deprecation warning but stay functional. I'd like to hear more about the pre-validation transformation approach you're building, so I'm moving this to Discussions to scope it properly. For context, historically GX hasn’t owned pre-validation transformation, outside of escape hatches like row conditions. I’d like to understand how much of your use case is covered by continued support for arbitrary pass-through row conditions, vs what would require a new API. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
With
condition_parserandPassThroughConditionbeing phased out in GX Core 2.0, how will SQL string like row conditions be supported in the future? When used with spark, users can utilize built-in spark functions directly in the row_condition value.The new GX Column condition object currently does not appear to support these methods. For example, suppose you have this spark dataframe:
You want to filter on just apple and banana entries in the expectation:
This can easily be done using the
UPPERspark method, causing values from the dataframe to be converted to full uppercase letters before the comparison. However, with the new row_condition pattern, a GX Column object is being used in the row_condition and DOES NOT appear support built-in functions like UPPER, among many others.Without this support, end users are required to use the
Column("...")row_condition pattern, which isn't as universal, string conditions are not supported, and spark methods are no longer supported directly in the row_condition.Describe the solution you'd like
Ideally, condition_parser and PassThroughCondition continue to remain supported or at the very least marked as deprecated in their current operational state and not removed entirely in GE 2.0
Describe alternatives you've considered
We have developed a translation script to convert simple spark syntax into GE Column objects. The shortcomings present themselves when it comes to modifying values received from the data frame before the comparison. We are also attempting to develop a contribution that would allow the modification of a data frame value to be modified before the comparison is completed so that further spark keyword support can be added as needed. (UPPER, DATEADD, TRIM, etc...)
All reactions