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 0BC0C1942E for ; Tue, 12 Apr 2016 16:48:26 +0000 (UTC) Received: (qmail 19871 invoked by uid 500); 12 Apr 2016 16:48:25 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 19820 invoked by uid 500); 12 Apr 2016 16:48:25 -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 19810 invoked by uid 99); 12 Apr 2016 16:48:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2016 16:48:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 72C5B2C14E1 for ; Tue, 12 Apr 2016 16:48:25 +0000 (UTC) Date: Tue, 12 Apr 2016 16:48:25 +0000 (UTC) From: "GaoLun (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-3729) Several SQL tests fail on Windows OS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-3729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15237523#comment-15237523 ] GaoLun commented on FLINK-3729: ------------------------------- The problem is the {{ast}} would use \r\n in Windows environment. The {{ast}} is created by {{RelOptUtil.toString(relNode)}} which would use different line-endings depend on the OS. And we can solve this issue as you mentioned: 1: modify the ast {code} val ast = RelOptUtil.toString(relNode).replaceAll("\r\n", "\n") {code} 2: For every test file, add another one with Windows version. > Several SQL tests fail on Windows OS > ------------------------------------ > > Key: FLINK-3729 > URL: https://issues.apache.org/jira/browse/FLINK-3729 > Project: Flink > Issue Type: Bug > Components: Table API > Affects Versions: 1.0.1 > Reporter: Chesnay Schepler > > The Table API SqlExplain(Test/ITCase) fail categorically on Windows due to different line-endings. These tests generate an string representation of an abstract syntax tree; problem is there is a difference in line-endings. > The expected ones contain LF, the actual one CRLF. > The tests should be either changed to either > * include CRLF line-endings in the expected string when run on windows > * always use LF line-endings regardless of OS > * use a compare method that is aware of this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)