From 3b6ce6d7c612be58fde1a2e5b73a461af19290b2 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 21 May 2018 17:16:37 -0700 Subject: patch a failing test (due to syntax deprecation) --- .../scala/parallelai/spyglass/hbase/testing/HBaseSaltTester.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/scala/parallelai/spyglass/hbase/testing/HBaseSaltTester.scala b/src/main/scala/parallelai/spyglass/hbase/testing/HBaseSaltTester.scala index fb91f65..fa20815 100644 --- a/src/main/scala/parallelai/spyglass/hbase/testing/HBaseSaltTester.scala +++ b/src/main/scala/parallelai/spyglass/hbase/testing/HBaseSaltTester.scala @@ -88,7 +88,7 @@ class HBaseSaltTester (args: Args) extends JobBase(args) with HBasePipeConversio val splitType = if(args.getOrElse("regional", "true").toBoolean) SplitType.REGIONAL else SplitType.GRANULAR val testName01 = "Scan All with NO useSalt" - val list01 = (00000 to 99999).toList.map(x => ("" + (x%10) + "_" + "%010d".format(x), "" + (x%10) + "_" + "%010d".format(x), "%010d".format(x))) + val list01 = (0 to 99999).toList.map(x => ("" + (x%10) + "_" + "%010d".format(x), "" + (x%10) + "_" + "%010d".format(x), "%010d".format(x))) val hbase01 = new HBaseSource( "_TEST.SALT.01", quorum, 'key, TABLE_SCHEMA.tail.map((x: Symbol) => "data"), TABLE_SCHEMA.tail.map((x: Symbol) => new Fields(x.name)), @@ -326,4 +326,4 @@ class HBaseSaltTestShutdown (args: Args) extends JobBase(args) with HBasePipeCon TABLE_SCHEMA.tail.map((x: Symbol) => "data"), TABLE_SCHEMA.tail.map((x: Symbol) => new Fields(x.name)), sinkMode = SinkMode.REPLACE )) } -} \ No newline at end of file +} -- cgit v1.2.3