aicam commented on code in PR #4006:
URL: https://github.com/apache/texera/pull/4006#discussion_r2512204961


##########
common/workflow-operator/src/main/scala/org/apache/amber/operator/visualization/barChart/BarChartOpDesc.scala:
##########
@@ -88,8 +92,8 @@ class BarChartOpDesc extends PythonOperatorDescriptor {
     )
 
   def manipulateTable(): String = {
-    assert(value.nonEmpty)
-    assert(fields.nonEmpty)
+    assert(value.nonEmpty, "Value column cannot be empty")
+    assert(fields.nonEmpty, "Fields cannot be empty")

Review Comment:
   Why do we need to repeat message here? I thought the `message` input at 
decorator should be enough, here we are duplicating the message



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to