forked from byzer-org/byzer-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修复 “系统默认的变量”会覆盖掉“custom设置的变量”的bug
- Loading branch information
周岑
committed
Aug 3, 2018
1 parent
fdc57fc
commit d6b3803
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
streamingpro-mlsql/src/test/scala/streaming/dsl/template/TemplateMergeSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package streaming.dsl.template | ||
|
||
import org.scalatest.{FlatSpec, Matchers} | ||
import streaming.core.NotToRunTag | ||
|
||
class TemplateMergeSpec extends FlatSpec with Matchers { | ||
|
||
|
||
"template merge" should "work" taggedAs (NotToRunTag) in { | ||
val sql = TemplateMerge.merge("${yesterday}",Map[String,String]("yesterday"->"2017-03-01")) | ||
assume(sql == "2017-03-01") | ||
} | ||
|
||
} |