Repository navigation
Conversation
|
|
| // Convert timestamps to a string representation with an arbitrary format | ||
|
|
||
| #ifndef _WIN32 | ||
| Result<std::locale> GetLocale(const std::string& locale) { |
There was a problem hiding this comment.
This function is only used ifndef win32. Cause unused function warning as error.
|
|
||
| template <class StreamType> | ||
| class ARROW_EXPORT SlowInputStreamBase : public StreamType { | ||
| class SlowInputStreamBase : public StreamType { |
There was a problem hiding this comment.
This class is implemented completely in header. ARROW_EXPORT expands to dllimport in test file, looks clang for windows expects the implementation is at somewhere else and produces link error complaining constructor definition not found.
NIFESTFILE:release\arrow-io-memory-test.exe.manifest" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: __declspec(dllimport) public: __cdecl arrow::io::SlowInputStreamBase<class arrow::io::InputStream>::SlowInputStreamBase<class arrow::io::InputStream>(class std::shared_ptr<class arrow::io::InputStream>, double)
>>> referenced by src\arrow\io\CMakeFiles\arrow-io-memory-test.dir\memory_test.cc.obj:(void __cdecl std::_Construct_in_place<class arrow::io::SlowInputStream, class std::shared_ptr<class arrow::io::BufferReader> &, double const &>(class arrow::io::SlowInputStream &, class std::shared_ptr<class arrow::io::BufferReader> &, double const &))
>>> referenced by src\arrow\io\CMakeFiles\arrow-io-memory-test.dir\memory_test.cc.obj:(void __cdecl std::_Construct_in_place<class arrow::io::SlowInputStream, class std::shared_ptr<class arrow::io::BufferReader> &, double const &>(class arrow::io::SlowInputStream &, class std::shared_ptr<class arrow::io::BufferReader> &, double const &))
lidavidm
left a comment
There was a problem hiding this comment.
Looks good to me, though I have a question about scalar.h.
| }; | ||
|
|
||
| template <typename T> | ||
| struct ARROW_EXPORT IntervalScalar : public TemporalScalar<T> { |
There was a problem hiding this comment.
Hmm, why is it only these particular classes that can't be exported? For instance, why don't we need to remove ARROW_EXPORT from TimeScalar (which is also a base class like the rest of these)?
There was a problem hiding this comment.
I think the reason is IntervalScalar contains some code (linker cannot find the constructor), but TimeScalar doesn't have code. Some scalars' implmentation code are in source files, they are also okay.
But it doesn't explain why Decimal128Scalar works.
There was a problem hiding this comment.
I suppose it could also be that some get inlined and so no references end up in the object file. Regardless, it appears to compile and work, so my only worry is that it may be brittle down the line.
There was a problem hiding this comment.
Not familiar with msvc dll export/import best practice. Find one similar issue on SO without satisfying answer.[1]
In my understanding, if a class is declared and defined in header only, it should not be marked dllimport or export. But what if some member functions are in header while some in source?
There was a problem hiding this comment.
Agreed. I think this is OK as is. It looks like we may end up having to remove other instances of ARROW_EXPORT later, but things still build as is so removing these shouldn't hurt things.
|
Can we trigger a nightly build of this PR? I don't remember the command. |
|
@github-actions crossbow submit -g nightly |
|
Revision: 29fa274 Submitted crossbow builds: ursacomputing/crossbow @ actions-1049 |
|
Hmm, nightly build is not very clean. |
|
Agreed, I don't think any of those errors are related. I think we can merge here. |
|
Benchmark runs are scheduled for baseline = de11d49 and contender = 112fde5. 112fde5 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
No description provided.