Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F5FB185EB for ; Sat, 6 Feb 2016 21:56:40 +0000 (UTC) Received: (qmail 59222 invoked by uid 500); 6 Feb 2016 21:56:40 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 59169 invoked by uid 500); 6 Feb 2016 21:56:39 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 59146 invoked by uid 99); 6 Feb 2016 21:56:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Feb 2016 21:56:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C757A2C1F57 for ; Sat, 6 Feb 2016 21:56:39 +0000 (UTC) Date: Sat, 6 Feb 2016 21:56:39 +0000 (UTC) From: "Stefano Baghino (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-3353) CSV-related tests may fail depending on locale MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Stefano Baghino created FLINK-3353: -------------------------------------- Summary: CSV-related tests may fail depending on locale Key: FLINK-3353 URL: https://issues.apache.org/jira/browse/FLINK-3353 Project: Flink Issue Type: Bug Components: Tests Affects Versions: 1.0.0 Reporter: Stefano Baghino Assignee: Stefano Baghino Priority: Trivial Fix For: 1.0.0 As I've been running some tests, three suites ({{KMeansWithBroadcastSetITCase.java}}, {{ScalaCsvReaderWithPOJOITCase.scala}} and {{CsvReaderITCase.java}}) kept failing locally because the expected results (string literals) were matched against an object rendered as a string using the {{String.format}} method, a method whose result depends on the default Locale; as my Locale (Italian) renders doubles with a comma instead of a dot as the decimal separator, the representation of doubles diverged from the expected one, thus making my tests fail, despite the results actually being correct. As the result is hard-coded, it makes sense to explicitly use the US locale to represent those object. I'll open a PR with my solution ASAP. -- This message was sent by Atlassian JIRA (v6.3.4#6332)