This is an automated email from the ASF dual-hosted git repository.
linxinyuan pushed a commit to branch xinyuan-dataset-selector
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/xinyuan-dataset-selector by
this push:
new dd0b690222 update
dd0b690222 is described below
commit dd0b69022287f1a22577f69e4e79d7e7b3dafaeb
Author: Xinyuan Lin <[email protected]>
AuthorDate: Fri Apr 10 17:02:50 2026 -0700
update
---
.../dataset/DatasetSelectorSourceOpDescSpec.scala | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git
a/common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/source/dataset/DatasetSelectorSourceOpDescSpec.scala
b/common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/source/dataset/DatasetSelectorSourceOpDescSpec.scala
new file mode 100644
index 0000000000..5ef53fb8d6
--- /dev/null
+++
b/common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/source/dataset/DatasetSelectorSourceOpDescSpec.scala
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.texera.amber.operator.source.dataset
+
+import org.apache.texera.amber.core.tuple.AttributeType
+import org.scalatest.flatspec.AnyFlatSpec
+
+class DatasetSelectorSourceOpDescSpec extends AnyFlatSpec {
+
+ "DatasetSelectorSourceOpDesc" should "expose a filename output column" in {
+ val opDesc = new DatasetSelectorSourceOpDesc()
+
+ val outputSchema = opDesc.getExternalOutputSchemas(Map.empty).values.head
+
+ assert(outputSchema.getAttributes.length == 1)
+ assert(outputSchema.getAttribute("filename").getType ==
AttributeType.STRING)
+ }
+
+ it should "use the expected operator metadata" in {
+ val opDesc = new DatasetSelectorSourceOpDesc()
+
+ assert(opDesc.operatorInfo.userFriendlyName == "Dataset Selector")
+ assert(opDesc.operatorInfo.inputPorts.isEmpty)
+ assert(opDesc.operatorInfo.outputPorts.length == 1)
+ }
+}