mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-08 15:27:00 +02:00
Update the bossa.load test case.
The archive contents seem to have changed, and the regular expression to match files that we were using doesn't match any filename in the archive any more. Also, have the command load more data by parsing more files, using the ALL FILENAME MATCHING clause.
This commit is contained in:
parent
f0cc4ddef9
commit
1d5d0ae72f
@ -4,7 +4,7 @@ LOAD ARCHIVE
|
|||||||
INTO postgresql:///stocks
|
INTO postgresql:///stocks
|
||||||
|
|
||||||
LOAD CSV
|
LOAD CSV
|
||||||
FROM FILENAME MATCHING ~/ALIOR/
|
FROM ALL FILENAMES MATCHING ~/ALIOR/
|
||||||
WITH ENCODING iso-8859-2
|
WITH ENCODING iso-8859-2
|
||||||
(ticker, quote_date, open, high, low, close, volume)
|
(ticker, quote_date, open, high, low, close, volume)
|
||||||
INTO postgresql:///stocks?intf_stocks
|
INTO postgresql:///stocks?intf_stocks
|
||||||
@ -14,7 +14,7 @@ LOAD ARCHIVE
|
|||||||
FIELDS TERMINATED BY ','
|
FIELDS TERMINATED BY ','
|
||||||
|
|
||||||
AND LOAD CSV
|
AND LOAD CSV
|
||||||
FROM FILENAME MATCHING ~/FPGNH14/
|
FROM ALL FILENAMES MATCHING ~/F[A-Z]{4}1[45]|OZ20/
|
||||||
WITH ENCODING iso-8859-2
|
WITH ENCODING iso-8859-2
|
||||||
(ticker, quote_date, open, high, low, close, volume, openint)
|
(ticker, quote_date, open, high, low, close, volume, openint)
|
||||||
INTO postgresql:///stocks?intf_derivatives
|
INTO postgresql:///stocks?intf_derivatives
|
||||||
|
Loading…
Reference in New Issue
Block a user