[
https://issues.apache.org/jira/browse/CALCITE-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596016#comment-16596016
]
Vladimir Sitnikov commented on CALCITE-2495:
--------------------------------------------
Cassandra fails to boot in 20 seconds, so I've disabled it.
{{mvn install -Dcalcite.test.cassandra=false}}
{noformat}[INFO] Reactor Summary:
[INFO]
[INFO] Calcite ........................................... SUCCESS [24.339s]
[INFO] Calcite Linq4j .................................... SUCCESS [20.542s]
[INFO] Calcite Core ...................................... SUCCESS [14:41.347s]
[INFO] Calcite Babel ..................................... SUCCESS [15.109s]
[INFO] Calcite Cassandra ................................. SUCCESS [17.297s]
[INFO] Calcite Druid ..................................... SUCCESS [24.806s]
[INFO] Calcite Elasticsearch ............................. SUCCESS [1:39.102s]
[INFO] Calcite Examples .................................. SUCCESS [0.572s]
[INFO] Calcite Example CSV ............................... SUCCESS [28.208s]
[INFO] Calcite Example Function .......................... SUCCESS [12.299s]
[INFO] Calcite File ...................................... SUCCESS [20.784s]
[INFO] Calcite Geode ..................................... SUCCESS [30.533s]
[INFO] Calcite MongoDB ................................... SUCCESS [35.113s]
[INFO] Calcite Pig ....................................... SUCCESS [1:07.560s]
[INFO] Calcite Piglet .................................... SUCCESS [15.233s]
[INFO] Calcite Plus ...................................... SUCCESS [32.529s]
[INFO] Calcite Server .................................... SUCCESS [26.802s]
[INFO] Calcite Spark ..................................... SUCCESS [1:17.114s]
[INFO] Calcite Splunk .................................... SUCCESS [9.142s]
[INFO] Calcite Ubenchmark ................................ SUCCESS [21.192s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24:20.572s
[INFO] Finished at: Wed Aug 29 10:06:18 MSK 2018
[INFO] Final Memory: 188M/1187M
[INFO] ------------------------------------------------------------------------
C:\dev\some spaces\calcite>{noformat}
> Rework URL->File conversion in tests
> ------------------------------------
>
> Key: CALCITE-2495
> URL: https://issues.apache.org/jira/browse/CALCITE-2495
> Project: Calcite
> Issue Type: Bug
> Reporter: Vladimir Sitnikov
> Assignee: Julian Hyde
> Priority: Major
>
> {{URL.getPath()}} produces %20 when path contains spaces.
> I suggest to rework all the uses of {{getResource()...}} to use
> {{Sources.of(URL)}} so there's single -point of failure- way to convert URL
> to File.
> This resolves Apache CI which happens to have a space in folder name.
> For the record:
> 1) {{URL.getPath()}} produces %20, so it is added to forbidden signatures
> 2) {{Paths.get(url.toURI()).toFile()}} almost works, however it fails with
> URL is not hierarchical for {{new URL("file:test.java")}}
> 3) {{new File(URL.toURI()}} is worse than #2
> 4) {{URLDecoder}} must not be used to decode %20, since it will convert {{+}}
> to spaces as well, thus it will corrupt {{test.c++}}
> 5) It looks like {{url.toURI().getSchemeSpecificPart())}} properly handles
> "opaque" URIs (which are relative {{file:test.java}} kind of URLs)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)