Ocient19 open jobs

Software Engineer II - Query Processing

BackendPosted 5 weeks agofrom Ocient's own hiring page

Work type
RemoteIn the US
Experience
2+ years
Pay
$145k–165k a year
Posted
5 weeks ago
Before you apply: make your resume fit this job

From the ad

  • No visa sponsorshipJob Title: Software Engineer II - Query Processing Location: 100% Remote (US Based Only) We cannot sponsor or transfer any visas, of any kind, at this time*

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on SQL, C++, Java and 3 more

About the job

About Ocient:Ocient is building OcientAIQ™ – a complete ecosystem for delivering trusted agentic AI solutions at petabyte scale, for the organizations that can't afford to get AI wrong. Our customers protect networks, secure nations, and power the global economy. The problems we solve are genuinely hard, and the work matters. Founded in 2016 by the team that built Cleversafe (acquired by IBM in 2015), Ocient is headquartered in Chicago with a remote-first global team. We are a carbon-neutral company backed by leading investors including Greycroft, OCA Ventures, In-Q-Tel, and Buoyant Ventures.

Do not contact Ocient directly to apply for a role. For security purposes, any applications received via email will be deleted.



Job Title: Software Engineer II - Query ProcessingLocation: 100% Remote (US Based Only)
  • We cannot sponsor or transfer any visas, of any kind, at this time*
Hiring Manager: Senior Engineering ManagerEstimated salary range: $145,000 to $165,000
  • The salary offered for this position will be based on a candidate’s experience and skill demonstrated during interviews and other evaluations

Job Description:The Query Processing team at Ocient handles the full landscape of parsing, validating, optimizing and executing SQL queries. The team ensures queries are correct and valid, the SQL is lowered into an optimal, executable representation, and the resulting plan is efficiently executed over petabytes of data across tens to hundreds of nodes. Query Processing works closely with our Test Infrastructure, Quality Assurance and Customer Operations teams to evaluate and improve performance on existing and new customer workloads, while also implementing new functionality to enable customer success. We are seeking a software engineer with strong interests in performance optimization and analysis - someone who enjoys analytical thinking and tackling abstract problems in the context of distributed database systems.
What You’ll Work On:
  • Contribute to the ongoing improvement of query processing efficiency through collaboration on design, implementation, and performance analysis across the system 
  • Actively participate in code reviews and design discussions, offering constructive feedback and learning from peers 
  • Demonstrate curiosity and have a penchant for research and abstract thinking, bringing in novel ideas, tools, or techniques to improve system performance and reliability 
  • Help triage and debug issues found in both production and test environments, contributing to root cause analysis and resolution 
  • Engage in improving team processes and culture by sharing feedback and contributing to a positive, inclusive work environment 
  • Support the growth of fellow engineers through collaboration, pairing, and knowledge sharing

Ideal Qualifications:
  • BS, MS, or PhD in computer science, computer engineering, or related technical field 
  • 2+ years of industry experience writing code to solve complex problems using an object-oriented programming language (e.g. C++, Java, C#) 
  • 1+ years work experience as a Software Engineer working in Python or similar test infrastructure language, and experience measuring performance in compiled languages 
  • Strong understanding and application of data structures and algorithms. 
  • Direct experience with testing performance of data warehouses and data analytics engines preferred 
  • Experience developing on Linux and in large, version-controlled projects 
  • Ability to speak and write in English fluently 

Interview Requirements: All interviews are conducted via video and require candidates to have their camera on for the duration of the session. The use of video filters, face-altering effects, or virtual backgrounds is not permitted for security and verification purposes.
We are not open to using an agency or staffing company at this time. We do not accept unsolicited agency or staffing resumes and we are not responsible for any fees related to unsolicited resumes. 
Ocient is an equal employment opportunity employer. All qualified applicants will receive consideration for employment without regard to race, creed, color, religion, sex (including pregnancy status), sexual orientation, gender identity, national origin or ancestry, ethnicity, citizenship status, age, physical or mental disability, veteran status, marital status, parental status, genetic information, or any other characteristic protected by applicable local laws, regulations and ordinances. If you need assistance with religious accommodations and/or a reasonable accommodation due to a disability during the application process, please contact recruiting@ocient.com for more information.
All official Ocient job postings and recruiting communications will come directly from our team via our Careers page, LinkedIn, or from an ocient.com email address. If you receive communication about a role from any other source, please treat it with caution and direct questions to recruiting@ocient.com.

Interested?Software Engineer II - Query Processing at Ocient

Apply on company site (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on SQL, C++, Java and 3 more

Interview questions for this job

For the skills the ad mentions: SQL, C++, Java, C#, Python and Linux.

905 questions
  • Return number of records in Customers?SQL
    SELECT COUNT(*) FROM Customers;
    

    From Cracking the SQL Interview (MIT)

  • Why are elementwise additions much faster in separate loops than in a combined loop?C++

    Upon further analysis of this, I believe this is (at least partially) caused by the data alignment of the four-pointers. This will cause some level of cache bank/way conflicts.

    If I've guessed correctly on how you are allocating your arrays, they are likely to be aligned to the page line.

    This means that all your accesses in each loop will fall on the same cache way. However, Intel processors have had 8-way L1 cache associativity for a while. But in reality, the performance isn't completely uniform. Accessing 4-ways is still slower than say 2-ways.

    EDIT: It does in fact look like you are allocating all the arrays separately. Usually when such large allocations are requested, the allocator will request fresh pages from the OS. Therefore, there is a high chance that large allocations will appear at the same offset from a page-boundary.

    Here's the test code:

    int main(){
        const int n = 100000;
    #ifdef ALLOCATE_SEPERATE
        double *a1 = (double*)malloc(n * sizeof(double));
        double *b1 = (double*)malloc(n * sizeof(double));
        double *c1 = (double*)malloc(n * sizeof(double));
        double *d1 = (double*)malloc(n * sizeof(double));
    #else
        double *a1 = (double*)malloc(n * sizeof(double) * 4);
        double *b1 = a1 + n;
        double *c1 = b1 + n;
        double *d1 = c1 + n;
    #endif
        //  Zero the data to prevent any chance of denormals.
        memset(a1,0,n * sizeof(double));
        memset(b1,0,n * sizeof(double));
        memset(c1,0,n * sizeof(double));
        memset(d1,0,n * sizeof(double));
        //  Print the addresses
        cout << a1 << endl;
        cout << b1 << endl;
        cout << c1 << endl;
        cout << d1 << endl;
        clock_t start = clock();
        int c = 0;
        while (c++ < 10000){
    #if ONE_LOOP
            for(int j=0;j<n;j++){
                a1[j] += b1[j];
                c1[j] += d1[j];
            }
    #else
            for(int j=0;j<n;j++){
                a1[j] += b1[j];
            }
            for(int j=0;j<n;j++){
                c1[j] += d1[j];
            }
    #endif
        }
        clock_t end = clock();
        cout << "seconds = " << (double)(end - start) / CLOCKS_PER_SEC << endl;
        system("pause");
        return 0;
    }
    

    Benchmark Results:

    EDIT: Results on an actual Core 2 architecture machine:

    2 x Intel Xeon X5482 Harpertown @ 3.2 GHz:

    #define ALLOCATE_SEPERATE
    #define ONE_LOOP
    00600020
    006D0020
    007A0020
    00870020
    seconds = 6.206
    #define ALLOCATE_SEPERATE
    //#define ONE_LOOP
    005E0020
    006B0020
    00780020
    00850020
    seconds = 2.116
    //#define ALLOCATE_SEPERATE
    #define ONE_LOOP
    00570020
    00633520
    006F6A20
    007B9F20
    seconds = 1.894
    //#define ALLOCATE_SEPERATE
    //#define ONE_LOOP
    008C0020
    00983520
    00A46A20
    00B09F20
    seconds = 1.993
    

    Observations:

    • 6.206 seconds with one loop and 2.116 seconds with two loops. This reproduces the OP's results exactly.

    • In the first two tests, the arrays are allocated separately. You'll notice that they all have the same alignment relative to the page.

    • In the second two tests, the arrays are packed together to break that alignment. Here you'll notice both loops are faster. Furthermore, the second (double) loop is now the slower one as you would normally expect.

    As @Stephen Cannon points out in the comments, there is a very likely possibility that this alignment causes false aliasing in the load/store units or the cache. I Googled around for this and found that Intel actually has a hardware counter for partial address aliasing stalls:

    http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/~amplifierxe/pmw_dp/events/partial_address_alias.html

    5 Regions - Explanations

    Region 1:

    This one is easy. The dataset is so small that the performance is dominated by overhead like looping and branching.

    Region 2:

    Read the rest at the sourceFrom Stack Overflow: asked by Johannes Gerer, answered by Mysticial (CC BY-SA 4.0)

  • Describe Queue interface from java collectionJava

    Queue interface

    public interface Queue<E> extends Collection<E>
    

    A collection designed for holding elements prior to processing. Besides basic Collection operations, queues provide additional insertion, extraction, and inspection operations. Each of these methods exists in two forms: one throws an exception if the operation fails, the other returns a special value (either null or false, depending on the operation). The latter form of the insert operation is designed specifically for use with capacity-restricted Queue implementations; in most implementations, insert operations cannot fail.

    Concurrency Throws exception Returns special value
    Insert add(e) offer(e)
    Remove remove() poll()
    Examine element() peek()

    Queues typically, but do not necessarily, order elements in a FIFO (first-in-first-out) manner. Among the exceptions are priority queues, which order elements according to a supplied comparator, or the elements' natural ordering, and LIFO queues (or stacks) which order the elements LIFO (last-in-first-out). Whatever the ordering used, the head of the queue is that element which would be removed by a call to remove() or poll(). In a FIFO queue, all new elements are inserted at the tail of the queue. Other kinds of queues may use different placement rules. Every Queue implementation must specify its ordering properties.1

    The Queue interface does not define the blocking queue methods, which are common in concurrent programming. These methods, which wait for elements to appear or for space to become available, are defined in the BlockingQueue interface, which extends this interface.

    Queue implementations generally do not allow insertion of null elements, although some implementations, such as LinkedList, do not prohibit insertion of null. Even in the implementations that permit it, null should not be inserted into a Queue, as null is also used as a special return value by the poll method to indicate that the queue contains no elements.

    Queue implementations generally do not define element-based versions of methods equals and hashCode but instead inherit the identity based versions from class Object, because element-based equality is not always well-defined for queues with the same elements but different ordering properties.2

    Read the rest at the sourceFrom Android Interview Questions (Apache 2.0)

  • What does the [Flags] Enum Attribute mean in C#?C#

    The [Flags] attribute should be used whenever the enumerable represents a collection of possible values, rather than a single value. Such collections are often used with bitwise operators, for example:

    var allowedColors = MyColor.Red | MyColor.Green | MyColor.Blue;
    

    Note that the [Flags] attribute doesn't enable this by itself - all it does is allow a nice representation by the .ToString() method:

    enum Suits { Spades = 1, Clubs = 2, Diamonds = 4, Hearts = 8 }
    [Flags] enum SuitsFlags { Spades = 1, Clubs = 2, Diamonds = 4, Hearts = 8 }
    ...
    var str1 = (Suits.Spades | Suits.Diamonds).ToString();
               // "5"
    var str2 = (SuitsFlags.Spades | SuitsFlags.Diamonds).ToString();
               // "Spades, Diamonds"
    

    It is also important to note that [Flags] does not automatically make the enum values powers of two. If you omit the numeric values, the enum will not work as one might expect in bitwise operations, because by default the values start with 0 and increment.

    Incorrect declaration:

    [Flags]
    public enum MyColors
    {
        Yellow,  // 0
        Green,   // 1
        Red,     // 2
        Blue     // 3
    }
    

    The values, if declared this way, will be Yellow = 0, Green = 1, Red = 2, Blue = 3. This will render it useless as flags.

    Here's an example of a correct declaration:

    [Flags]
    public enum MyColors
    {
        Yellow = 1,
        Green = 2,
        Red = 4,
        Blue = 8
    }
    

    To retrieve the distinct values in your property, one can do this:

    if (myProperties.AllowedColors.HasFlag(MyColor.Yellow))
    {
        // Yellow is allowed...
    }
    

    or prior to .NET 4:

    if((myProperties.AllowedColors & MyColor.Yellow) == MyColor.Yellow)
    {
        // Yellow is allowed...
    }
    if((myProperties.AllowedColors & MyColor.Green) == MyColor.Green)
    {
        // Green is allowed...
    }    
    

    Under the covers

    This works because you used powers of two in your enumeration. Under the covers, your enumeration values look like this in binary ones and zeros:

     Yellow: 00000001
     Green:  00000010
     Red:    00000100
     Blue:   00001000
    

    Similarly, after you've set your property AllowedColors to Red, Green and Blue using the binary bitwise OR | operator, AllowedColors looks like this:

    myProperties.AllowedColors: 00001110
    

    So when you retrieve the value you are actually performing bitwise AND & on the values:

    myProperties.AllowedColors: 00001110
                 MyColor.Green: 00000010
                 -----------------------
                                00000010 // Hey, this is the same as MyColor.Green!
    

    The None = 0 value

    And regarding the use of 0 in your enumeration, quoting from MSDN:

    [Flags]
    public enum MyColors
    {
        None = 0,
        ....
    }
    

    Use None as the name of the flag enumerated constant whose value is zero. You cannot use the None enumerated constant in a bitwise AND operation to test for a flag because the result is always zero. However, you can perform a logical, not a bitwise, comparison between the numeric value and the None enumerated constant to determine whether any bits in the numeric value are set.

    You can find more info about the flags attribute and its usage at msdn and designing flags at msdn

    From Stack Overflow: asked by Brian Leahy, answered by andynil (CC BY-SA 4.0)

  • How can I pass optional or keyword parameters from one function to another?Python

    Collect the arguments using the * and ** specifiers in the function’s parameter list; this gives you the positional arguments as a tuple and the keyword arguments as a dictionary. You can then pass these arguments when calling another function by using * and **:

    def f(x, *args, **kwargs):
        ...
        kwargs['width'] = '14.3c'
        ...
        g(x, *args, **kwargs)
    

    From Python Frequently Asked Questions (PSF License Version 2)

  • Have you ever taken the initiative?Behavioural

    Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:

    • when have you faced a challenging situation?
    • can you tell us about a personal achievement at work?
    • have you ever taken the initiative?
    • have you ever failed at a task?

    Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.

    If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.

    Use the  STAR method  to help structure your answers.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Backend developer jobs in the USA (630) and Remote Backend developer jobs in the USA (356)