John Colvin
1bb7d6eca2
Add ColumnIndex class to resolve column names to indices
...
Improves performance compared to accessing columns by name
2025-11-14 14:59:33 -05:00
John Colvin
519ef8b0af
Increase SQLiteEnumerator page size to 65536
...
This performs better, and doesn't seem to be too large in practice
2025-11-14 14:59:33 -05:00
John Colvin
6b93c07271
Serialize TimeSpan w/ microsecond precision in DataPacket json
2025-11-14 14:59:33 -05:00
John Colvin
c3288c721d
Format DateTimes w/ microsecond precision in DataPacketJsonConverter
2025-11-14 14:59:33 -05:00
John Colvin
2622626eed
Add BlueColumnTable for pandas integration
...
This will make it easier/more natural to support pandas column expressions
2025-11-14 14:59:33 -05:00
John Colvin
d9470bdb6e
Add c# Variant class, modeled after std::variant in c++
2025-11-14 14:59:33 -05:00
John Colvin
f32e9bba10
refactor: Rename snake_case fns PascalCase
2025-11-14 14:58:14 -05:00
John Colvin
f119f30b62
fix load IDataStreamFactory(s) with depdendency injection
2025-11-14 14:57:43 -05:00
John Colvin
4877355fee
refactor: Use dependency injection in DSQA
2025-11-14 14:52:07 -05:00
John Colvin
ada7d4bed1
refactor: Load IDataStreamFactory(s) with dependency injection
...
So we can create ViewStreams that depend on other services, config, etc.
Previously, the PrimitiveManager relied purely on static construction of
types through reflection.
2025-11-14 14:52:07 -05:00
John Colvin
f65b6b82f2
refactor: Replace DataPacket w/ IDataPacket in stream handlers
...
This commit also renames BlueTableSchemaAdaptor to BlueTableSchemaAdapter,
and makes it implement IBlueTableSchema.
2025-11-03 16:21:32 -05:00
John Colvin
1155fd6997
refactor: Change namespace to Bts.DataStreamCore for a few types
...
Since they're in the DataStreamCore csproj
2025-11-03 16:19:50 -05:00
John Colvin
f423ea518e
Make 'name' default to CallerArgumentExpression for convenience
2025-11-03 16:19:50 -05:00
John Colvin
088b543e48
refactor: Replace if/else with switch cases
2025-11-03 16:19:50 -05:00
John Colvin
2163821b43
cleanup: Remove over-engineered subcommands
...
We don't need explicit subcommands to 'run onixs' md (just use config).
2025-11-03 16:19:50 -05:00
John Colvin
abf4cdacf8
fix: Ensure IDGenerator instance is created before deref
2025-11-03 16:19:49 -05:00
John Colvin
70fc4f9ae7
fix: Expand undefined vars to empty string
...
Bugs (fixed):
* Md shared memory file names have unexpanded variable: '${BTS_SHARED_MEMORY_PREFIX}'
2025-11-03 16:19:49 -05:00
John Colvin
797ba111ec
fix: Emplace MDConsumerHandle instead of copy assign
2025-11-03 16:19:49 -05:00
John Colvin
a51b015907
cleanup: Remove unnecessary code
...
Trim includes as well
2025-11-03 16:19:49 -05:00
John Colvin
ec057605a5
improvement: Set SHARED_MEMORY_PREFIX to an environment variable
...
So we can effectively define it at runtime. We don't want to have to
produce different builds just to change the shared mem prefix.
2025-11-03 16:19:49 -05:00
John Colvin
e0903d1c82
fix: Always prepend proc name to shared mem prefix
...
Our shared memory model isn't really designed to be shared across
processes. Maybe some day it will.
2025-11-03 16:19:49 -05:00
John Colvin
1616e1a8b9
cleanup: Remove redundant macro def
2025-11-03 16:19:49 -05:00
John Colvin
cfd5579703
Skip md recording thread loop if no recorders configured to run
2025-11-03 16:19:49 -05:00
John Colvin
849737b2ef
cleanup: Trivial whitespace cleanup in Protobuf.cmake
2025-11-03 16:19:49 -05:00
John Colvin
85a5b72ec5
build: Clean up data_files cmake proj (support --target clean)
2025-11-03 16:19:49 -05:00
John Colvin
e9ac78b438
fix build: Add ShmSegmentName.cpp to windows client sources
2025-11-03 16:19:49 -05:00
John Colvin
e5288f1be2
Add api server to docker compose
2025-11-03 16:19:49 -05:00
John Colvin
50c2a57c5c
Change api server ports so they don't conflict w/ ds webapp
2025-11-03 16:19:49 -05:00
John Colvin
8f293f73e3
build: Resolve app data dir and shared mem prefix at runtime
...
We really can't define them at compile time anymore as we build multiple
exes that depend on libspark in the same dir (e.g., spark api server,
pubsub, ds-publisher, webapp, etc.). That means one libspark.so (or dll)
must serve all exes. We should compile a consistent libspark to mitigate
the risk of running an exe with the wrong version (of libspark). For
example, running pubsub with a libspark configured for spark api server,
leftover from an earlier build.
2025-11-03 16:19:49 -05:00
John Colvin
ac42732a19
Don't log "initializing spark config" if it has already been initialized
2025-11-03 16:19:48 -05:00
John Colvin
97246e7ce7
vscode: Add debug cfg for spark api server
2025-11-03 16:19:48 -05:00
John Colvin
0815f9316d
Use dependency injection in spark api server
2025-11-03 16:19:48 -05:00
John Colvin
cc00ff2a0a
Add SparkLoggerAdapter for Msft ILogger
2025-11-03 16:19:48 -05:00
John Colvin
28545b5099
fix: Don't assert on exception in BooleanExpression.evaluate
...
Bugs (fixed):
* DataStream WebApp Server sometimes crashes when the user enters a
bad query.
2025-11-03 16:19:48 -05:00
John Colvin
04c1ad7be8
Assert that local ip address is successfully obtained
2025-11-03 16:19:48 -05:00
John Colvin
2441a5267d
improvement: Resolve hostnames when comparing ip addrs
...
So we can to configure pubsub routes by hostname or ipv4 (ipv6 hasn't
been tested yet...so we should assume it doesn't work).
2025-11-03 16:19:48 -05:00
John Colvin
12f44f63aa
Assert TcpConnection endpoint matches expected
2025-11-03 16:19:48 -05:00
John Colvin
c2fe578ccb
Catch exceptions on AsyncTCPConnector_AsyncWrapper background thread
...
Since it spawns a new thread on each attempt, uncaught exceptions were previously undetected,
and caused silent failures down the pipe. This should make it easier to track such bugs down.
2025-11-03 16:19:48 -05:00
John Colvin
a01fc6cc15
fix: Format PubSubRoute as json in log msgs
...
It was previously using the default ToString, which simply returns the type name
2025-11-03 16:19:48 -05:00
John Colvin
d80cd9c0fd
build: Upgrade packages (deps) in DataStreamTests
2025-11-03 16:19:48 -05:00
John Colvin
d707847079
cleanup: Remove unused ViewStreamDatabase config
2025-11-03 16:19:48 -05:00
John Colvin
96d98a239f
vscode: Add PubSubServer debug cfg to skip build
2025-11-03 16:19:48 -05:00
John Colvin
118e2a9f2e
Remove reference to spark protobuf Config in ViewStream
...
We can't read spark protobuf Config until it has been initialized,
and since ViewStream doesn't have the configServer param handy it
isn't able to initialize config if necessary. In that case, it would simply
block until config was initialized by someone else. Such a risk doesn't
seem justified for this particular configuration dependency
(DataStreamConfig.UseUncopiedNewRowsInFire). For now, its hardcoded to false.
2025-11-03 16:19:48 -05:00
John Colvin
1481a3fd07
refactor: Run RemoteQueryManager as an IHostedService
...
This paradigm more accurately represents the RemoteQueryManager as a
Service that can be started/stopped.
2025-11-03 16:19:45 -05:00
John Colvin
a5e58c26ce
fix: Ensure spark config init and login are only performed once
...
As a static function that could be called from anywhere in the code
(directly or indirectly), 'Configuration.Initialize' was vulnerable to
race bugs. The "Configuration.get<T>()" method, whose calls are
ubiquitous in our code, would initialize config if it hadn't been done
so already. Without a reference to the configServer param, this param
would effectively be ignored/overridden with null.
It's important that login only be performed once, for obvious reasons
(our exes that connect to sparkd are generally designed to process data
for a single user). Furthermore, not every routine that requires a
successful login has a reference to the credentials needed to do it. To
address this, we now pass the ISparkdLoginService singleton to these
routines so they can wait until the singular login task has completed
before they begin.
2025-11-03 16:13:44 -05:00
John Colvin
8637bb9254
Assert ViewStreamDatabase.instance is only created once
...
The instance must be initialized via ViewStreamDatabase.SetGlobalInstance
2025-11-03 16:13:44 -05:00
John Colvin
7c61c2ef6d
cleanup: Remove unused code from ViewStreamDatabase
2025-11-03 16:13:44 -05:00
John Colvin
0668e0cd8c
fix: Define BoooleanConstant before StringConstant
...
Otherwise the former masks the latter and prevents it from matching
2025-11-03 16:13:44 -05:00
John Colvin
3ae88248cc
cleanup: Remove unnecessary deps from csprojs
2025-11-03 16:13:43 -05:00
John Colvin
1367cea9ca
fix: Catch exception when creating TcpClient
2025-11-03 16:13:43 -05:00