Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Contributing file #4

Closed

Conversation

facebook-github-bot
Copy link
Contributor

This is pull request was created automatically because we noticed your project was missing a Contributing file.

CONTRIBUTING files explain how a developer can contribute to the project - which you should actively encourage.

This PR was crafted with love by Facebook's Open Source Team.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 9, 2021
@mbasmanova
Copy link
Contributor

Done by @pedroerp

@mbasmanova mbasmanova closed this Sep 16, 2021
winningsix pushed a commit to winningsix/velox-1 that referenced this pull request Sep 27, 2021
* Data transfer with arrow

* Velox to Arrow

* Fix a small bug in Type.h

* Clear comments and Create DataUtil class

Co-authored-by: lalalazy12 <lmengyao.xu@intel.com>
winningsix pushed a commit to winningsix/velox-1 that referenced this pull request Sep 27, 2021
* Data transfer with arrow

* Velox to Arrow

* Fix a small bug in Type.h

* Clear comments and Create DataUtil class

Co-authored-by: lalalazy12 <lmengyao.xu@intel.com>
winningsix pushed a commit to winningsix/velox-1 that referenced this pull request Sep 27, 2021
Conflicts:
	velox/vector/tests/VectorTest.cpp
@pedroerp pedroerp mentioned this pull request Nov 8, 2021
facebook-github-bot pushed a commit that referenced this pull request Apr 28, 2022
Summary:
Enhance printExprWithStats to identify common-sub expressions.

For example, `c0 + c1` is a common sub-expression in
`"(c0 + c1) % 5", " (c0 + c1) % 3"` expression set. It is evaluated only once and
there is a single Expr object that represents it. That object appears in the
expression tree twice. printExprWithStats does not show the runtime stats for
second instance of that expression and instead annotates it with `[CSE https://github.com/facebookincubator/velox/issues/2]`,
where CSE stands for common sub-expression and 2 refers to the first instance
of the expression.

```
mod [cpu time: 50.49us, rows: 1024] -> BIGINT [#1]
   cast(plus as BIGINT) [cpu time: 68.15us, rows: 1024] -> BIGINT [#2]
      plus [cpu time: 51.84us, rows: 1024] -> INTEGER [#3]
         c0 [cpu time: 0ns, rows: 0] -> INTEGER [#4]
         c1 [cpu time: 0ns, rows: 0] -> INTEGER [#5]
   5:BIGINT [cpu time: 0ns, rows: 0] -> BIGINT [#6]

mod [cpu time: 49.29us, rows: 1024] -> BIGINT [#7]
   cast((plus(c0, c1)) as BIGINT) -> BIGINT [CSE #2]
   3:BIGINT [cpu time: 0ns, rows: 0] -> BIGINT [#8]
```

Pull Request resolved: #1500

Reviewed By: Yuhta

Differential Revision: D35994836

Pulled By: mbasmanova

fbshipit-source-id: 6bacbbe61b68dad97ce2fd5f99610c4ad55897be
rui-mo added a commit to rui-mo/velox that referenced this pull request May 6, 2022
Arty-Maly pushed a commit to Arty-Maly/velox that referenced this pull request May 13, 2022
…tor#1500)

Summary:
Enhance printExprWithStats to identify common-sub expressions.

For example, `c0 + c1` is a common sub-expression in
`"(c0 + c1) % 5", " (c0 + c1) % 3"` expression set. It is evaluated only once and
there is a single Expr object that represents it. That object appears in the
expression tree twice. printExprWithStats does not show the runtime stats for
second instance of that expression and instead annotates it with `[CSE https://github.com/facebookincubator/velox/issues/2]`,
where CSE stands for common sub-expression and 2 refers to the first instance
of the expression.

```
mod [cpu time: 50.49us, rows: 1024] -> BIGINT [#1]
   cast(plus as BIGINT) [cpu time: 68.15us, rows: 1024] -> BIGINT [facebookincubator#2]
      plus [cpu time: 51.84us, rows: 1024] -> INTEGER [facebookincubator#3]
         c0 [cpu time: 0ns, rows: 0] -> INTEGER [facebookincubator#4]
         c1 [cpu time: 0ns, rows: 0] -> INTEGER [facebookincubator#5]
   5:BIGINT [cpu time: 0ns, rows: 0] -> BIGINT [facebookincubator#6]

mod [cpu time: 49.29us, rows: 1024] -> BIGINT [facebookincubator#7]
   cast((plus(c0, c1)) as BIGINT) -> BIGINT [CSE facebookincubator#2]
   3:BIGINT [cpu time: 0ns, rows: 0] -> BIGINT [facebookincubator#8]
```

Pull Request resolved: facebookincubator#1500

Reviewed By: Yuhta

Differential Revision: D35994836

Pulled By: mbasmanova

fbshipit-source-id: 6bacbbe61b68dad97ce2fd5f99610c4ad55897be
rui-mo added a commit to rui-mo/velox that referenced this pull request Jun 24, 2022
rui-mo added a commit to rui-mo/velox that referenced this pull request Jun 30, 2022
rui-mo added a commit to rui-mo/velox that referenced this pull request Jul 20, 2022
rui-mo added a commit to rui-mo/velox that referenced this pull request Aug 2, 2022
rui-mo added a commit to rui-mo/velox that referenced this pull request Aug 12, 2022
shiyu-bytedance pushed a commit to shiyu-bytedance/velox-1 that referenced this pull request Aug 18, 2022
…tor#1500)

Summary:
Enhance printExprWithStats to identify common-sub expressions.

For example, `c0 + c1` is a common sub-expression in
`"(c0 + c1) % 5", " (c0 + c1) % 3"` expression set. It is evaluated only once and
there is a single Expr object that represents it. That object appears in the
expression tree twice. printExprWithStats does not show the runtime stats for
second instance of that expression and instead annotates it with `[CSE https://github.com/facebookincubator/velox/issues/2]`,
where CSE stands for common sub-expression and 2 refers to the first instance
of the expression.

```
mod [cpu time: 50.49us, rows: 1024] -> BIGINT [facebookincubator#1]
   cast(plus as BIGINT) [cpu time: 68.15us, rows: 1024] -> BIGINT [facebookincubator#2]
      plus [cpu time: 51.84us, rows: 1024] -> INTEGER [facebookincubator#3]
         c0 [cpu time: 0ns, rows: 0] -> INTEGER [facebookincubator#4]
         c1 [cpu time: 0ns, rows: 0] -> INTEGER [facebookincubator#5]
   5:BIGINT [cpu time: 0ns, rows: 0] -> BIGINT [facebookincubator#6]

mod [cpu time: 49.29us, rows: 1024] -> BIGINT [facebookincubator#7]
   cast((plus(c0, c1)) as BIGINT) -> BIGINT [CSE facebookincubator#2]
   3:BIGINT [cpu time: 0ns, rows: 0] -> BIGINT [facebookincubator#8]
```

Pull Request resolved: facebookincubator#1500

Reviewed By: Yuhta

Differential Revision: D35994836

Pulled By: mbasmanova

fbshipit-source-id: 6bacbbe61b68dad97ce2fd5f99610c4ad55897be
rui-mo added a commit to rui-mo/velox that referenced this pull request Aug 22, 2022
Atry added a commit to Atry/velox that referenced this pull request Sep 1, 2022
…g::glog (facebookincubator#4)

Summary:
X-link: facebookexperimental/edencommon#4

X-link: facebookexperimental/rust-shed#34

X-link: facebook/fbthrift#521

X-link: facebook/watchman#1055

X-link: facebook/folly#1854

X-link: facebook/openr#140

X-link: facebook/fb303#31

Previously Folly provided a polyfill of the `GflagsFlagSaver` symbol, which was removed since facebook/folly@4dadde1. Therefore, the `glog` should solve the `GflagsFlagSaver` symbol from `gflags`.

This diff added `gflags` libraries as a dependency of the CMake project `glog::glog` into `fbcode_builder`'s `FindGlog.cmake`, so that the `fbcode_builder` users will be able to automatically link with `gflags`.

Differential Revision: D39220438

fbshipit-source-id: 819114858fa46367d9eed9b71c1d47bb51e30d4d
rui-mo added a commit to rui-mo/velox that referenced this pull request Sep 7, 2022
rui-mo added a commit to rui-mo/velox that referenced this pull request Sep 26, 2022
liujiayi771 added a commit to liujiayi771/velox that referenced this pull request Mar 13, 2023
liujiayi771 added a commit to liujiayi771/velox that referenced this pull request Mar 16, 2023
liujiayi771 added a commit to liujiayi771/velox that referenced this pull request Mar 18, 2023
liujiayi771 added a commit to liujiayi771/velox that referenced this pull request Mar 19, 2023
liujiayi771 added a commit to liujiayi771/velox that referenced this pull request Mar 22, 2023
liujiayi771 added a commit to liujiayi771/velox that referenced this pull request Mar 23, 2023
rui-mo pushed a commit to rui-mo/velox that referenced this pull request Mar 24, 2023
rui-mo pushed a commit to rui-mo/velox that referenced this pull request Mar 27, 2023
liujiayi771 pushed a commit to liujiayi771/velox that referenced this pull request Jun 12, 2023
…b_c5b1cfdc2_2

fix short decimal type convert to velox
laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 12, 2023
Summary:
```
============================================================================
[...]hmarks/ExpressionBenchmarkBuilder.cpp     relative  time/iter   iters/s
============================================================================
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#1               71.48ms     13.99
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#2               76.58ms     13.06
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#3               85.31ms     11.72
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#4              121.56ms      8.23
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#1                      27.19ms     36.78
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#2                      33.10ms     30.21
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#3                      33.47ms     29.88
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#4                      31.70ms     31.55
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#1                      26.92ms     37.14
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#2                      36.62ms     27.31
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#3                      34.19ms     29.24
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#4                      33.76ms     29.62
```

Differential Revision: D50237919
laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 12, 2023
Summary:

```
============================================================================
[...]hmarks/ExpressionBenchmarkBuilder.cpp     relative  time/iter   iters/s
============================================================================
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#1               71.48ms     13.99
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#2               76.58ms     13.06
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#3               85.31ms     11.72
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#4              121.56ms      8.23
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#1                      27.19ms     36.78
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#2                      33.10ms     30.21
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#3                      33.47ms     29.88
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#4                      31.70ms     31.55
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#1                      26.92ms     37.14
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#2                      36.62ms     27.31
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#3                      34.19ms     29.24
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#4                      33.76ms     29.62
```

Differential Revision: D50237919
laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 12, 2023
Summary:

```
============================================================================
[...]hmarks/ExpressionBenchmarkBuilder.cpp     relative  time/iter   iters/s
============================================================================
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#1               71.48ms     13.99
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#2               76.58ms     13.06
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#3               85.31ms     11.72
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#4              121.56ms      8.23
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#1                      27.19ms     36.78
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#2                      33.10ms     30.21
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#3                      33.47ms     29.88
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#4                      31.70ms     31.55
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#1                      26.92ms     37.14
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#2                      36.62ms     27.31
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#3                      34.19ms     29.24
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#4                      33.76ms     29.62
```

Differential Revision: D50237919
laithsakka added a commit to laithsakka/velox that referenced this pull request Oct 12, 2023
Summary:

```
============================================================================
[...]hmarks/ExpressionBenchmarkBuilder.cpp     relative  time/iter   iters/s
============================================================================
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#1               71.48ms     13.99
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#2               76.58ms     13.06
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#3               85.31ms     11.72
map_subscript_MAP<ARRAY<VARCHAR>,INTEGER>#facebookincubator#4              121.56ms      8.23
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#1                      27.19ms     36.78
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#2                      33.10ms     30.21
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#3                      33.47ms     29.88
map_subscript_MAP<INTEGER,INTEGER>#facebookincubator#4                      31.70ms     31.55
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#1                      26.92ms     37.14
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#2                      36.62ms     27.31
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#3                      34.19ms     29.24
map_subscript_MAP<VARCHAR,INTEGER>#facebookincubator#4                      33.76ms     29.62
```

Differential Revision: D50237919
facebook-github-bot pushed a commit that referenced this pull request Aug 23, 2024
Summary:
The default algorithm used is MD5. However, MD5 is not supported with
fips and can cause a SIGSEGV. Set CRC32 instead which is a standard for
checksum computation and is not restricted by fips.
crc32 is also faster than md5.

Internally at IBM, we hit the following SIGSEGV

```
0x0000000000000000 in ?? ()
Missing separate debuginfos, use: dnf debuginfo-install openssl-fips-provider-3.0.7-2.el9.x86_64 xz-libs-5.2.5-8.el9_0.x86_64
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000004e5f89b in Aws::Utils::Crypto::MD5OpenSSLImpl::Calculate(std::istream&) ()
#2  0x0000000004efd298 in Aws::Utils::Crypto::MD5::Calculate(std::istream&) ()
#3  0x0000000004ef71b9 in Aws::Utils::HashingUtils::CalculateMD5(std::iostream&) ()
#4  0x0000000004e8ebe8 in Aws::Client::AWSClient::AddChecksumToRequest(std::shared_ptr<Aws::Http::HttpRequest> const&, Aws::AmazonWebServiceRequest const&) const ()
#5  0x0000000004e8ed15 in Aws::Client::AWSClient::BuildHttpRequest(Aws::AmazonWebServiceRequest const&, std::shared_ptr<Aws::Http::HttpRequest> const&) const ()
#6  0x0000000004e977f9 in Aws::Client::AWSClient::AttemptOneRequest(std::shared_ptr<Aws::Http::HttpRequest> const&, Aws::AmazonWebServiceRequest const&, char const*, char const*, char const*) const ()
#7  0x0000000004e9e1c0 in Aws::Client::AWSClient::AttemptExhaustively(Aws::Http::URI const&, Aws::AmazonWebServiceRequest const&, Aws::Http::HttpMethod, char const*, char const*, char const*) const ()
#8  0x0000000004ea15e8 in Aws::Client::AWSXMLClient::MakeRequest(Aws::Http::URI const&, Aws::AmazonWebServiceRequest const&, Aws::Http::HttpMethod, char const*, char const*, char const*) const ()
#9  0x0000000004ea1f70 in Aws::Client::AWSXMLClient::MakeRequest(Aws::AmazonWebServiceRequest const&, Aws::Endpoint::AWSEndpoint const&, Aws::Http::HttpMethod, char const*, char const*, char const*) const ()
#10 0x0000000004de0933 in Aws::S3::S3Client::UploadPart(Aws::S3::Model::UploadPartRequest const&) const::{lambda()https://github.com/facebookincubator/velox/issues/1}::operator()() const ()
#11 0x0000000004de0b8c in std::_Function_handler<Aws::Utils::Outcome<Aws::S3::Model::UploadPartResult, Aws::S3::S3Error> (), Aws::S3::S3Client::UploadPart(Aws::S3::Model::UploadPartRequest const&) const::{lambda()https://github.com/facebookincubator/velox/issues/1}>::_M_invoke(std::_Any_data const&) ()
#12 0x0000000004e19317 in Aws::Utils::Outcome<Aws::S3::Model::UploadPartResult, Aws::S3::S3Error> smithy::components::tracing::TracingUtils::MakeCallWithTiming<Aws::Utils::Outcome<Aws::S3::Model::UploadPartResult, Aws::S3::S3Error> >(std::function<Aws::Utils::Outcome<Aws::S3::Model::UploadPartResult, Aws::S3::S3Error> ()>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, smithy::components::tracing::Meter const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#13 0x0000000004d7cdcf in Aws::S3::S3Client::UploadPart(Aws::S3::Model::UploadPartRequest const&) const ()
#14 0x0000000004ca4aa6 in facebook::velox::filesystems::S3WriteFile::Impl::uploadPart (this=0x7fffec2f09a0, part=..., isLast=true)
    at /root/velox/velox/connectors/hive/storage_adapters/s3fs/S3FileSystem.cpp:380
```

Pull Request resolved: #10801

Reviewed By: amitkdutta

Differential Revision: D61671574

Pulled By: kgpai

fbshipit-source-id: 34c7b777b3fde0659ef74c4fbfd93740fdfa3f7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants