Software Engineer - Database Search
Software engineeringPosted 3 weeks agofrom Snowflake's own hiring page
- Work type
- On-siteBerlin
- Experience
- Not stated
- Pay
- Not listedUsually €60k a yearSoftware engineering, median, all levels, in Germany (Payscale)
- Posted
- 3 weeks ago
From the ad
Degree or equivalent experience
A degree in Computer Science or a related field, or equivalent practical experience
Skills it mentions
Add your skills to see which ones you have.
About the job
At Snowflake, we are powering the era of the agentic enterprise. To usher in this new era, we seek AI-native thinkers across every function who are energized by the opportunity to reinvent how they work. You don’t just use tools; you possess an innate curiosity, treating AI as a high-trust collaborator that is core to how you solve problems and accelerate your impact. We look for low-ego individuals who thrive in dynamic and fast-moving environments and move with an experimental mindset — who rapidly test emerging capabilities to discover simpler, more powerful ways to deliver results. At Snowflake, your role isn't just to execute a function, but to help redefine the future of how work gets done.
About Database Search
Within this broader Berlin engineering team, Database Search focuses on workload optimization: building core database-engine capabilities that help customer queries run faster by finding and processing data efficiently. The team works on indexing methods, index selection and maintenance, data pruning and skipping, and query optimization for selective SQL queries and other workloads. This work also contributes to Snowflake Optima, which automatically identifies optimization opportunities in customer workloads and seamlessly integrates them so queries get faster over time with minimal user input.
The role
As a Software Engineer, you’ll take on challenging problems inside the database engine, designing, implementing, and improving components across indexing, query optimization, and execution. You’ll drive work from investigation through tested implementation and collaborate with teammates to deliver robust solutions for demanding customer workloads.
What you’ll do
Implement, test, and improve database-engine features across indexing, data pruning and skipping, query optimization, and execution.
Investigate performance and scalability bottlenecks using debugging, instrumentation, and measurement, then drive fixes through validation.
Write maintainable, reliable code and tests in C++ and/or Java.
Build and improve components in a highly parallel database engine, reasoning about how changes affect query execution end to end.
Work with teammates and partner engineering groups to refine designs, deliver changes, and share results.
Evaluate changes against customer workloads and system behavior, and measure their performance impact.
What you’ll bring
Experience building software through professional work, internships, research, or substantial personal or open-source projects.
Proficiency in C++ and/or Java, with an interest in writing efficient, reliable systems software.
Foundational knowledge of data structures, algorithms, and software design.
Familiarity with SQL and core database concepts, or a strong interest in developing that knowledge.
Foundational understanding of concurrency and multithreading.
A proactive, self-motivated approach to hard problems: you take initiative, pursue issues to root cause, and work through ambiguity while communicating progress and incorporating feedback.
Professional proficiency in English.
A degree in Computer Science or a related field, or equivalent practical experience.
Helpful experience
Exposure to database internals, query engines, storage engines, indexing, or query execution.
Experience analyzing performance in concurrent, multithreaded, or otherwise performance-sensitive systems software.
Familiarity with SQL workloads or columnar data formats such as ORC or Parquet.
Snowflake is growing fast, and we’re scaling our team to help enable and accelerate our growth. We are looking for people who share our values, challenge ordinary thinking, and push the pace of innovation while building a future for themselves and Snowflake.
How do you want to make your impact?
For jobs located in the United States, please visit the job posting on the Snowflake Careers Site for salary and benefits information: careers.snowflake.com
Interested?Software Engineer - Database Search at Snowflake
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on C++, Java and SQL
Interview questions for this job
For the skills the ad mentions: C++, Java and SQL.
When should static_cast, dynamic_cast, const_cast, and reinterpret_cast be used?C++
static_caststatic_castis the first cast you should attempt to use. It does things like implicit conversions between types (such asinttofloat, or pointer tovoid*), and it can also call explicit conversion functions (or implicit ones). In many cases, explicitly statingstatic_castisn't necessary, but it's important to note that theT(something)syntax is equivalent to(T)somethingand should be avoided (more on that later). AT(something, something_else)is safe, however, and guaranteed to call the constructor.static_castcan also cast through inheritance hierarchies. It is unnecessary when casting upwards (towards a base class), but when casting downwards it can be used as long as it doesn't cast throughvirtualinheritance. It does not do checking, however, and it is undefined behavior tostatic_castdown a hierarchy to a type that isn't actually the type of the object.const_castconst_castcan be used to remove or addconstto a variable; no other C++ cast is capable of removing it (not evenreinterpret_cast). It is important to note that modifying a formerlyconstvalue is only undefined if the original variable isconst; if you use it to take theconstoff a reference to something that wasn't declared withconst, it is safe. This can be useful when overloading member functions based onconst, for instance. It can also be used to addconstto an object, such as to call a member function overload.const_castalso works similarly onvolatile, though that's less common.dynamic_castdynamic_castis exclusively used for handling polymorphism. You can cast a pointer or reference to any polymorphic type to any other class type (a polymorphic type has at least one virtual function, declared or inherited). You can use it for more than just casting downwards – you can cast sideways or even up another chain. Thedynamic_castwill seek out the desired object and return it if possible. If it can't, it will returnnullptrin the case of a pointer, or throwstd::bad_castin the case of a reference.dynamic_casthas some limitations, though. It doesn't work if there are multiple objects of the same type in the inheritance hierarchy (the so-called 'dreaded diamond') and you aren't usingvirtualinheritance. It also can only go through public inheritance - it will always fail to travel throughprotectedorprivateinheritance. This is rarely an issue, however, as such forms of inheritance are rare.reinterpret_castreinterpret_castis the most dangerous cast, and should be used very sparingly. It turns one type directly into another — such as casting the value from one pointer to another, or storing a pointer in anint, or all sorts of other nasty things. Largely, the only guarantee you get withreinterpret_castis that normally if you cast the result back to the original type, you will get the exact same value (but not if the intermediate type is smaller than the original type). There are a number of conversions thatreinterpret_castcannot do, too. It's often abused for particularly weird conversions and bit manipulations, like turning a raw data stream into actual data, or storing data in the low bits of a pointer to aligned data. For those cases, seestd::bit_cast.C-Style Cast and Function-Style Cast
C-style cast and function-style cast are casts using
(type)objectortype(object), respectively, and are functionally equivalent. They are defined as the first of the following which succeeds:const_caststatic_cast(though ignoring access restrictions)static_cast(see above), thenconst_castreinterpret_castreinterpret_cast, thenconst_cast
Read the rest at the sourceFrom Stack Overflow: asked by James Eichele, answered by coppro (CC BY-SA 4.0)
Describe List interfaceJava
List interface
A
Listis an orderedCollection(sometimes called a sequence). Lists may contain duplicate elements. In addition to the operations inherited fromCollection, theListinterface includes operations for the following:- Positional access — manipulates elements based on their numerical position in the list. This includes methods such as
get,set,add,addAll, andremove. - Search - searches for a specified object in the list and returns its numerical position. Search methods include
indexOfandlastIndexOf. - Iteration — extends Iterator semantics to take advantage of the list's sequential nature. The listIterator methods provide this behavior.
- Range-view — The
sublistmethod performs arbitrary range operations on the list.
The Java platform contains two general-purpose
Listimplementations.ArrayList, which is usually the better-performing implementation, andLinkedListwhich offers better performance under certain circumstances.Like the
Setinterface,Liststrengthens the requirements on theequalsandhashCodemethods so that twoListobjects can be compared for logical equality without regard to their implementation classes. TwoListobjects are equal if they contain the same elements in the same order.Most used Implementing Classes
- ArrayList. Resizable-array implementation of the
Listinterface. Implements all optional list operations, and permits all elements, includingnull. In addition to implementing theListinterface, this class provides methods to manipulate the size of the array that is used internally to store the list. (This class is roughly equivalent toVector, except that it is unsynchronized.) - LinkedList. Doubly-linked list implementation of the
ListandDequeinterfaces. Implements all optional list operations, and permits all elements (includingnull). All of the operations perform as could be expected for a doubly-linked list. Operations that index into the list will traverse the list from the beginning or the end, whichever is closer to the specified index. - Vector. The
Vectorclass implements a growable array of objects. Like an array, it contains components that can be accessed using an integer index. However, the size of aVectorcan grow or shrink as needed to accommodate adding and removing items after theVectorhas been created. Vectors basically fall in legacy classes but now it is fully compatible with collections. - Stack. The
Stackclass represents a last-in-first-out (LIFO) stack of objects. It extends classVectorwith five operations that allow a vector to be treated as a stack. The usual push and pop operations are provided, as well as a method to peek at the top item on the stack, a method to test for whether the stack is empty, and a method to search the stack for an item and discover how far it is from the top. When a stack is first created, it contains no items.
Iterators
Iteratorreturned by List's iterator operation returns the elements of the list in proper sequence.Listalso provides a richer iterator, called aListIterator, which allows you to traverse the list in either direction, modify the list during iteration, and obtain the current position of the iterator.Read the rest at the sourceFrom Android Interview Questions (Apache 2.0)
- Positional access — manipulates elements based on their numerical position in the list. This includes methods such as
Which SQL statement extracts data?SQL
SELECT. Optional clauses:WHERE,GROUP BY,HAVING,ORDER BY,LIMIT,JOIN.SELECT name AS full_name, salary * 12 AS annual_salary FROM employees WHERE department = 'Engineering' ORDER BY annual_salary DESC;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.993Observations:
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:
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
Collectionoperations, 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 (eithernullorfalse, depending on the operation). The latter form of the insert operation is designed specifically for use with capacity-restrictedQueueimplementations; 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()orpoll(). In a FIFO queue, all new elements are inserted at the tail of the queue. Other kinds of queues may use different placement rules. EveryQueueimplementation must specify its ordering properties.1The
Queueinterface 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 theBlockingQueueinterface, which extends this interface.Queueimplementations generally do not allow insertion ofnullelements, although some implementations, such asLinkedList, do not prohibit insertion ofnull. Even in the implementations that permit it,nullshould not be inserted into aQueue, asnullis also used as a special return value by thepollmethod to indicate that the queue contains no elements.Queueimplementations generally do not define element-based versions of methodsequalsandhashCodebut instead inherit the identity based versions from classObject, because element-based equality is not always well-defined for queues with the same elements but different ordering properties.2Read the rest at the sourceFrom Android Interview Questions (Apache 2.0)
Do you have any weaknesses?Behavioural
You should be honest when answering questions on your weaknesses. Say how you're working to improve them.
ExampleQuestion - "Do you have any weaknesses?"
Answer - "I struggle with time management on projects. To make sure I stick to the time frame I'm creating a timetable of steps at the start of each project".
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Tech LeadClera, Berlin, on-siteToday
- Senior GNC Engineer (m/f/d)TYTAN Technologies GmbH, Berlin, on-siteToday
- Software Engineer, TaskingPlanet Labs, Berlin, hybrid3 days ago
- Lead Software Engineersonymusicentertainment, London, on-siteToday
More like this: Software engineer jobs in Berlin (20), Jobs in Berlin (1,035) and Software engineer jobs in Germany (109)

