This is an automated email from the ASF dual-hosted git repository.

xuang7 pushed a commit to branch release/v1.2
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/release/v1.2 by this push:
     new 874917864c fix(QuiverPlot, RangeSlider, v1.2): retarget numeric 
attributeTypeRules to real fields  (#7011)
874917864c is described below

commit 874917864c68c89a382d4d92b111229b7a89c34a
Author: Yicong Huang <[email protected]>
AuthorDate: Wed Jul 29 14:19:43 2026 -0400

    fix(QuiverPlot, RangeSlider, v1.2): retarget numeric attributeTypeRules to 
real fields  (#7011)
    
    ### What changes were proposed in this PR?
    
    Backport of #6810 to `release/v1.2`, cherry-picked from
    1c411dedaad2bb8bd8fd4f5301843ae1f2f1c781.
    
    **Source fix only.** Test changes from #6810 were omitted (the touched
    specs do not exist on `release/v1.2` or depend on main-only test
    infrastructure); only the source fix is carried over, per maintainer
    guidance.
    
    ### Any related issues, documentation, discussions?
    
    Backport of #6810. Originally linked #6795.
    
    ### How was this PR tested?
    
    Release-branch CI runs on this PR. Source change cherry-picked cleanly;
    test changes intentionally dropped.
    
    ### Was this PR authored or co-authored using generative AI tooling?
    
    Yes — backport prepared with Claude Code (mechanical cherry-pick +
    conflict resolution; the change itself is #6810 by its original author).
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Signed-off-by: Kary Zheng <[email protected]>
    Co-authored-by: Kary Zheng <[email protected]>
    Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
    Co-authored-by: Copilot Autofix powered by AI 
<[email protected]>
---
 .../operator/visualization/quiverPlot/QuiverPlotOpDesc.scala  | 11 ++++++++++-
 .../visualization/rangeSlider/RangeSliderOpDesc.scala         |  5 +++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git 
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/visualization/quiverPlot/QuiverPlotOpDesc.scala
 
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/visualization/quiverPlot/QuiverPlotOpDesc.scala
index aa785826ae..527235b920 100644
--- 
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/visualization/quiverPlot/QuiverPlotOpDesc.scala
+++ 
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/visualization/quiverPlot/QuiverPlotOpDesc.scala
@@ -33,7 +33,16 @@ import 
org.apache.texera.amber.pybuilder.PythonTemplateBuilder
 @JsonSchemaInject(json = """
 {
   "attributeTypeRules": {
-    "value": {
+    "x": {
+      "enum": ["integer", "long", "double"]
+    },
+    "y": {
+      "enum": ["integer", "long", "double"]
+    },
+    "u": {
+      "enum": ["integer", "long", "double"]
+    },
+    "v": {
       "enum": ["integer", "long", "double"]
     }
   }
diff --git 
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/visualization/rangeSlider/RangeSliderOpDesc.scala
 
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/visualization/rangeSlider/RangeSliderOpDesc.scala
index 051c0ba2cc..6b1425708d 100644
--- 
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/visualization/rangeSlider/RangeSliderOpDesc.scala
+++ 
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/visualization/rangeSlider/RangeSliderOpDesc.scala
@@ -32,11 +32,12 @@ import 
org.apache.texera.amber.pybuilder.PythonTemplateBuilder
 
 import javax.validation.constraints.NotNull
 
-// type constraint: value can only be numeric
+// type constraint: Y-axis is aggregated (mean/sum), so it must be numeric;
+// X-axis is only a grouping key and may be any type.
 @JsonSchemaInject(json = """
 {
   "attributeTypeRules": {
-    "value": {
+    "Y-axis": {
       "enum": ["integer", "long", "double"]
     }
   }

Reply via email to