Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E3549200C43 for ; Sun, 12 Mar 2017 05:51:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E229F160B88; Sun, 12 Mar 2017 04:51:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5C3E5160B7B for ; Sun, 12 Mar 2017 05:51:54 +0100 (CET) Received: (qmail 47971 invoked by uid 500); 12 Mar 2017 04:51:48 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 47771 invoked by uid 99); 12 Mar 2017 04:51:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Mar 2017 04:51:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CEC80F16B2; Sun, 12 Mar 2017 04:51:47 +0000 (UTC) From: zsxwing To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request #17209: [SPARK-19853][SS] uppercase kafka topics fail whe... Content-Type: text/plain Message-Id: <20170312045147.CEC80F16B2@git1-us-west.apache.org> Date: Sun, 12 Mar 2017 04:51:47 +0000 (UTC) archived-at: Sun, 12 Mar 2017 04:51:55 -0000 Github user zsxwing commented on a diff in the pull request: https://github.com/apache/spark/pull/17209#discussion_r105548819 --- Diff: external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaSourceSuite.scala --- @@ -606,6 +607,36 @@ class KafkaSourceSuite extends KafkaSourceTest { assert(query.exception.isEmpty) } + for((optionKey, optionValue, answer) <- Seq( + (STARTING_OFFSETS_OPTION_KEY, "earLiEst", EarliestOffsetRangeLimit), + (ENDING_OFFSETS_OPTION_KEY, "laTest", LatestOffsetRangeLimit), + (STARTING_OFFSETS_OPTION_KEY, """{"topic-A":{"0":23}}""", + SpecificOffsetRangeLimit(Map(new TopicPartition("topic-A", 0) -> 23))))) { + test(s"test offsets containing uppercase characters (${answer.getClass.getSimpleName})") { + val offset = getKafkaOffsetRangeLimit( + Map(optionKey -> optionValue), + optionKey, + answer + ) + + assert(offset == answer) + } + } + + for((optionKey, answer) <- Seq( --- End diff -- Same as above --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org